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: netfoundry/ctl.py
+37-13
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ def main(cli):
102
102
103
103
104
104
@cli.argument('-e', '--eval', help="source or eval output to configure shell environment with a login token", arg_only=True, action="store_true", default=False)
105
-
@cli.subcommand('login to a management API')
105
+
@cli.subcommand('login to NetFoundry with a user token or API account credentials')
106
106
deflogin(cli):
107
107
"""Login to an API and cache the expiring token."""
@cli.argument('query', arg_only=True, action=StoreDictKeyPair, nargs='?', help="query params as k=v,k=v comma-separated pairs")
664
684
@cli.argument('resource_type', arg_only=True, help='type of resource', choices=[choiceforgroupin [[singular(type), RESOURCES[type].abbreviation] fortypeinRESOURCES.keys()] forchoiceingroup])
665
-
@cli.subcommand('delete a resource in the network domain')
685
+
@cli.subcommand('delete a single resource by type and query')
666
686
defdelete(cli):
667
687
"""Delete a resource in the network domain."""
668
688
spinner=get_spinner("working")
@@ -747,7 +767,8 @@ def delete(cli):
747
767
748
768
749
769
@cli.argument("-p", "--prefix", default=f"{cli.prog_name}-demo", help="choose a network name prefix to identify all of your demos")
750
-
@cli.argument("-j", "--jwt", action="store_boolean", default=True, help="save the one-time enroll token for each demo identity in the current directory")
770
+
@cli.argument("-j", "--jwt", action="store_boolean", default=True, help="save the one-time enroll token for each demo identity in the current directory")
771
+
@cli.argument("-e", "--echo-name", arg_only=True, action="store_true", default=False, help="only echo a friendly network name then exit")
0 commit comments