Logo: Relish

  1. Sign in

Project: Cardigan 0.1.1

import

In order to interoperate with other tracking systems
As a command line junkie
I want to import cards from csv

Scenarios
import cards containing ids from csv
Given
a file named "cards1.csv" with:
id,name,estimate
10,qwer,1
11,adsf,2
12,zxcv,3
When
I run cardigan import cards1
And
I run cardigan ls
And
I run cardigan export cards2
Then
the exit status should be 0
And
the stdout should contain:
 --------------
| index | name |
 --------------
| 1     | adsf |
| 2     | qwer |
| 3     | zxcv |
 --------------
And
the file "cards2.csv" should contain "id,estimate,name"
And
the file "cards2.csv" should contain "10,1,qwer"
And
the file "cards2.csv" should contain "11,2,adsf"
And
the file "cards2.csv" should contain "12,3,zxcv"

Last published about 7 years ago by markryall.