Contents

import

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

Scenario: 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:
    text
     --------------
    | 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"

Source: features/commands/import.feature at commit b93b5958, Cardigan (MIT license).