You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/command.rs
+48-2Lines changed: 48 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,38 @@ pub enum Command {
23
23
#[structopt(long = "scope", short = "s")]
24
24
scope:Option<String>,
25
25
},
26
+
26
27
#[structopt(name = "pack")]
27
-
/// 🍱 create a tar of your npm package but don't publish! [NOT IMPLEMENTED]
28
+
/// 🍱 create a tar of your npm package but don't publish!
28
29
Pack{path:Option<String>},
30
+
29
31
#[structopt(name = "publish")]
30
-
/// 🎆 pack up your npm package and publish! [NOT IMPLEMENTED]
32
+
/// 🎆 pack up your npm package and publish!
31
33
Publish{path:Option<String>},
34
+
35
+
#[structopt(name = "login", alias = "adduser", alias = "add-user")]
36
+
/// 👤 Add a registry user account! (aliases: adduser, add-user)
37
+
Login{
38
+
#[structopt(long = "registry", short = "r")]
39
+
/// Default: 'https://registry.npmjs.org/'.
40
+
/// The base URL of the npm package registry. If scope is also specified, this registry will only be used for packages with that scope. scope defaults to the scope of the project directory you're currently in, if any.
41
+
registry:Option<String>,
42
+
43
+
#[structopt(long = "scope", short = "s")]
44
+
/// Default: none.
45
+
/// If specified, the user and login credentials given will be associated with the specified scope.
46
+
scope:Option<String>,
47
+
48
+
#[structopt(long = "always-auth", short = "a")]
49
+
/// If specified, save configuration indicating that all requests to the given registry should include authorization information. Useful for private registries. Can be used with --registry and / or --scope
50
+
always_auth:bool,
51
+
52
+
#[structopt(long = "auth-type", short = "t")]
53
+
/// Default: 'legacy'.
54
+
/// Type: 'legacy', 'sso', 'saml', 'oauth'.
55
+
/// What authentication strategy to use with adduser/login. Some npm registries (for example, npmE) might support alternative auth strategies besides classic username/password entry in legacy npm.
0 commit comments