-
Notifications
You must be signed in to change notification settings - Fork 56
feat(profile): add profile subcommands
#28
Conversation
|
Hello @zkat, I have some questions.
Thanks! |
TODO: OTP code, TFA
8b80c17 to
1008a01
Compare
profile commandprofile subcommands
|
@zkat If you think that Btw, I have some improvements in my TODO list:
|
lib/commands/profile.jsx
Outdated
|
|
||
| async function enable2fa (argv) { | ||
| const url = require('url') | ||
| const queryString = require('query-string') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use the built-in querystring module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Changed 👍
lib/commands/profile.jsx
Outdated
|
|
||
| const getOptions = argv => ProfileConfig(npmConfig().concat(argv).concat({ log })) | ||
|
|
||
| // TODO: Move to `../utils`? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far so good!
Ref: https://www.npmjs.com/package/npm-profile
Ref: https://docs.npmjs.com/cli/profile.html
Ref: https://docs.npmjs.com/cli/token.html
adduserloginadduserWebloginWebadduserCouchloginCouchgetsetenable-2fadisable-2faset passwordlistTokensremoveTokencreateToken