Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Refactor cli to use yargs #390

Merged
merged 5 commits into from
Aug 10, 2016
Merged

Refactor cli to use yargs #390

merged 5 commits into from
Aug 10, 2016

Conversation

dignifiedquire
Copy link
Member

@dignifiedquire dignifiedquire commented Aug 2, 2016

Make the cli interface a little bit more awesome :)

@dignifiedquire dignifiedquire added the status/in-progress In progress label Aug 2, 2016
@RichardLitt
Copy link
Member

Subscribing!

@RichardLitt
Copy link
Member

Why not minimist?

@dignifiedquire
Copy link
Member Author

Because minimist is similarly to ronin not really maintained anymore at the moment.

@RichardLitt
Copy link
Member

@dignifiedquire Can we talk to someone about that? Maybe @substack would be interested in handing it over to someone, or something?

@dignifiedquire dignifiedquire removed the status/in-progress In progress label Aug 2, 2016
@dignifiedquire dignifiedquire reopened this Aug 2, 2016
@dignifiedquire dignifiedquire added the status/in-progress In progress label Aug 2, 2016
@dignifiedquire dignifiedquire changed the title [WIP] start refactoring the cli using yargs. Refactor cli to use yargs Aug 3, 2016
@dignifiedquire
Copy link
Member Author

This is now ready for review @RichardLitt @diasdavid

All failing tests are as far as I can see from the duplexify issues, but will wait for CI to confirm that.

updateNotifier({
pkg,
updateCheckInterval: 1000 * 60 * 60 * 24 * 7 // 1 week
}).notify()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@daviddias
Copy link
Member

Does this solve the 'help text' issue for the commands?

@dignifiedquire
Copy link
Member Author

Does this solve the 'help text' issue for the commands?

yes

@dignifiedquire
Copy link
Member Author

@diasdavid getting green, please review :)

@dignifiedquire
Copy link
Member Author

dignifiedquire commented Aug 10, 2016

New output

> node src/cli/bin.js files --help
src/cli/bin.js files

Commands:
  add <file>       Add a file to IPFS using the UnixFS
                   data format
  cat <ipfs-path>  Download IPFS objects
  get <ipfs-path>  Download IPFS objects

Options:
  --help  Show help                           [boolean]


> node src/cli/bin.js files add --help
src/cli/bin.js files add <file>

Options:
  --help           Show help                  [boolean]
  --recursive, -r            [boolean] [default: false]

@daviddias
Copy link
Member

nice, just tried it out, I like it :) let's merge it it :)

@daviddias daviddias merged commit 45040b2 into master Aug 10, 2016
@daviddias daviddias deleted the better-cli branch August 10, 2016 18:26
@daviddias daviddias removed the status/in-progress In progress label Aug 10, 2016
@daviddias
Copy link
Member

@RichardLitt how is the ipfs mans coming along?

@RichardLitt
Copy link
Member

I haven't had much bandwidth for this since getting back. :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsipfs version should work without any ipfs repo cli: doc: OPTIONS output not working
3 participants