Giter Site home page Giter Site logo

trello-cli's Introduction

todo-cli

This is a to-do management tool that uses the Trello service.
Node.js is used, and all operations can be performed from the command line.

installation

dependencies Node.js and npm package module.
install Node.js and type this.

$ npm install -g https://github.com/miyabisun/todo-cli

get Trello api-key and token

First, log in to Trello.
Then go to the API Key for Developers page to receive your API key and token.

Set it up as a ToDo tool with the following command.

$ todo login -k <API Key> -t <Token>
login successful!

$ ls -a ~ | grep todo
.todo.yml

uninstall

To uninstall, delete ~/.todo.yml file.
Then remove the package you installed with npm.

$ rm ~/.todo.yml

$ npm uninstall -g todo-cli
Removed executable 'todo' installed by 'todo-cli'
success: package 'todo-cli' uninstalled

usage

show --help option mode.

$ todo -h
todo [コマンド]

コマンド:
  todo add <name...>  create card to To Do list                  [エイリアス: a]
  todo boards         show boards
  todo close [id...]  delete cards                               [エイリアス: c]
  todo d              [tty] move card to Done list
  todo done <id...>   move card to Done list
  todo list           show cards in To Do and Doing list        [エイリアス: ls]
  todo login          try login and save to ~/.todo.yml
  todo next           show doing card                            [エイリアス: n]
  todo p              [tty] move card to To Do list
  todo pause <id...>  move card to To Do list
  todo s              [tty] move card to Doing list
  todo select <name>  select current board
  todo start <id...>  move card to Doing list

オプション:
  -h, --help     ヘルプを表示                                             [真偽]
  -v, --version  バージョンを表示                                         [真偽]

todo-cli flow

  1. todo select <Board Name> -i
  2. todo add <todo name1> <todo name2> ...
  3. todo start <id>
  4. todo done
  5. todo close -d

show subcommand --help options.
eg. todo init -h

set up current board

todo-cli will use Trello's Board, but will require the following List.

  • To Do
  • Doing
  • Done

You can use the todo select <Board name> command to switch the target Board,
but it will fail if these Lists do not exist.

Use the todo select <new Board name> -i command to create a Board.
At this time, if the name of the Board already exists, three Lists will be generated in the Board.

# Check the Board list.
$ todo boards

# Create Board and select
$ todo select test-board -i
not found 'test-board' board.
create test-board board.
'To Do' list is insufficient.
create 'To Do' list.
'Doing' list is insufficient.
create 'Doing' list.
'Done' list is insufficient.
create 'Done' list.
selected board to test-board.

# "*" is current Board
$ todo boards
* test-board

card

create

Now let's create a new card.
The card created by the command will be stored in the To Do list.

$ todo add "test-task"
'test-task' is created (79).

show cards

You can check the list of cards you have created by using the following command.

$ todo
[todo] 79: test-task

# The above command is an alias for this
$ todo ls -s
[todo] 79: test-task

The number to the left of the card name indicates the card's ID.

start card

Set catd to Doing.
Specify the ID set in the card.

$ todo start 79
test-task is start.

done card

Move the completed card to the Done list.

$ todo done 79
test-task is done.

pause card

Oh no, this card can't continue to work.
Let's put it back on the to-do list.

$ todo pause 79
test-task is paused.

I don't want to type card-id.

Short commands are available.
That set of commands will take care of entering the card's ID for you, just like FZF.

  • todo s: like todo start.
  • todo p: like todo pause.
  • todo d: like todo done.

use node-fzf module.

$ todo s
>
  2/2 fuzzy mode ctrl-s [0]
> [To Do] 2: task-b
  [Done] 1: task-a

# push Enter key

task-b is start.

trello-cli's People

Contributors

miyabisun avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.