Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split help commands into Basic and Advanced and Instance command groups #2147

Open
dj-documentation opened this issue Jan 17, 2024 · 6 comments
Assignees
Labels
area/cli limactl CLI user experience enhancement New feature or request good first issue Good for newcomers

Comments

@dj-documentation
Copy link

Description

Separate instance-specific commands into their own help group to make it easier for new users to see what commands are available.

See #2144

@AkihiroSuda AkihiroSuda added good first issue Good for newcomers enhancement New feature or request area/cli limactl CLI user experience labels Jan 17, 2024
@ayushgml
Copy link
Contributor

Hey @AkihiroSuda! I have interest of working on this issue and wanted to clear that the following output of limactl help is:

Lima: Linux virtual machines

Usage:
  limactl [command]

Examples:
  Start the default instance:
  $ limactl start

  Open a shell:
  $ lima

  Run a container:
  $ lima nerdctl run -d --name nginx -p 8080:80 nginx:alpine

  Stop the default instance:
  $ limactl stop

  See also template YAMLs: /usr/local/share/lima/templates

Available Commands:
  completion    Generate the autocompletion script for the specified shell
  copy          Copy files between host and guest
  create        Create an instance of Lima
  delete        Delete an instance of Lima.
  disk          Lima disk management
  edit          Edit an instance of Lima
  factory-reset Factory reset an instance of Lima
  help          Help about any command
  info          Show diagnostic information
  list          List instances of Lima.
  protect       Protect an instance to prohibit accidental removal
  prune         Prune garbage objects
  shell         Execute shell in Lima
  show-ssh      Show the ssh command line (DEPRECATED; use `ssh -F` instead)
  snapshot      Manage instance snapshots
  start         Start an instance of Lima
  stop          Stop an instance
  sudoers       Generate the content of the /etc/sudoers.d/lima file
  unprotect     Unprotect an instance
  validate      Validate YAML files

Flags:
      --debug              debug mode
  -h, --help               help for limactl
      --log-level string   Set the logging level [trace, debug, info, warn, error]
      --tty                Enable TUI interactions such as opening an editor. Defaults to true when stdout is a terminal. Set to false for automation. (default true)
  -v, --version            version for limactl

Use "limactl [command] --help" for more information about a command.

So from the list of "Available commands", the "Basic commands" will be list, create, delete, edit, shell, start, stop and the rest will be "Advanced commands"? I am running limactl version 0.20.0.

@AkihiroSuda
Copy link
Member

So from the list of "Available commands", the "Basic commands" will be list, create, delete, edit, shell, start, stop and the rest will be "Advanced commands"?

Yes

@ayushgml
Copy link
Contributor

Thank you @AkihiroSuda for clearing it. Can you assign me this issue?

@ayushgml
Copy link
Contributor

The output of limactl help is:

Lima: Linux virtual machines

Usage:
  limactl [command]

Examples:
  Start the default instance:
  $ limactl start

  Open a shell:
  $ lima

  Run a container:
  $ lima nerdctl run -d --name nginx -p 8080:80 nginx:alpine

  Stop the default instance:
  $ limactl stop

  See also template YAMLs: /usr/local/share/lima/templates

Basic Commands:
  create          Create an instance of Lima
  delete          Delete an instance of Lima.
  edit            Edit an instance of Lima
  list            List instances of Lima.
  shell           Execute shell in Lima
  start           Start an instance of Lima
  stop            Stop an instance

Advanced Commands:
  copy            Copy files between host and guest
  debug           Debug utilities
  disk            Lima disk management
  factory-reset   Factory reset an instance of Lima
  generate-doc    Generate cli-reference pages
  hostagent       run hostagent
  info            Show diagnostic information
  protect         Protect an instance to prohibit accidental removal
  prune           Prune garbage objects
  show-ssh        Show the ssh command line (DEPRECATED; use `ssh -F` instead)
  snapshot        Manage instance snapshots
  sudoers         Generate the content of the /etc/sudoers.d/lima file
  unprotect       Unprotect an instance
  usernet         run usernet
  validate        Validate YAML files

Flags:
  --debug           debug mode
  --help            help for limactl
  --log-level       Set the logging level [trace, debug, info, warn, error]
  --tty             Enable TUI interactions such as opening an editor. Defaults to true when stdout is a terminal. Set to false for automation.
  --version         version for limactl

Use "limactl [command] --help" for more information about a command.

Is this okay @AkihiroSuda ?

@AkihiroSuda
Copy link
Member

Thanks, but the following commands have to continue to be hidden:

  • debug
  • generate-doc
  • hostagent
  • usernet

@dj-documentation
Copy link
Author

dj-documentation commented Jan 27, 2024

It would be helpful to have documentation that separates commands into individual instance commands, cluster management commands, and debugging commands. Splitting commands into basic and advanced groups still leaves a mess of commands and that doesn't help a user much when they're asking what can I do with this instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli limactl CLI user experience enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants