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

docs: $ coder completion #3888

Closed
3 tasks
ghuntley opened this issue Sep 6, 2022 · 3 comments
Closed
3 tasks

docs: $ coder completion #3888

ghuntley opened this issue Sep 6, 2022 · 3 comments
Labels
docs Area: docs stale This issue is like stale bread.

Comments

@ghuntley
Copy link
Contributor

ghuntley commented Sep 6, 2022

It appears the documentation for

$ coder completion
Generate the autocompletion script for coder for the specified shell.
See each sub-command's help for details on how to use the generated script.

Usage:
  coder completion [command]

Commands:
  bash        Generate the autocompletion script for bash
  fish        Generate the autocompletion script for fish
  powershell  Generate the autocompletion script for powershell
  zsh         Generate the autocompletion script for zsh

Flags:
  -h, --help   help for completion

Global Flags:
      --global-config coder   Specify the path to the global coder config directory.
                              Consumes $CODER_CONFIG_DIR (default "/home/gitpod/.config/coderv2")
      --no-feature-warning    Suppress warnings about unlicensed features.
                              Consumes $CODER_NO_FEATURE_WARNING
      --no-version-warning    Suppress warning when client and server versions do not match.
                              Consumes $CODER_NO_VERSION_WARNING
      --token string          Specify an authentication token. For security reasons setting
                              CODER_SESSION_TOKEN is preferred.
                              Consumes $CODER_SESSION_TOKEN
      --url string            Specify the URL to your deployment.
  -v, --verbose               Enable verbose output.
                              Consumes $CODER_VERBOSE

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

does not exist yet at https://coder.com/docs/coder-oss/latest.

specifics to document

  • Explain purpose
  • Demonstrate / show the value of installing the hooks.
  • Show how to install the hooks assuming someone has never installed hooks before
@ghuntley ghuntley added docs Area: docs simple labels Sep 6, 2022
@bpmct
Copy link
Member

bpmct commented Sep 19, 2022

I'm hesitant to add fine-grained documentation for each CLI command unless they are auto-generated. I updated #3522 to include CLI documentation as well. GitLab does this pretty well: https://gitlab.com/gitlab-org/cli#documentation

Alternatively, we could have a dedicated page for CLI, as Coder Classic and Vault does & include a section there, as Vault does:

@ghuntley
Copy link
Contributor Author

ghuntley commented Sep 20, 2022

I'm hesitant to add fine-grained documentation for each CLI command unless they are auto-generated.

Agreed!

Alternatively, we could have a dedicated page for CLI, as Coder Classic and Vault does & include a section there, as Vault does:

Think there should be an exception to above for the autocompletion verb and indeed do something similar to commands#autocompletion

CleanShot 2022-09-20 at 12 59 19@2x

Otherwise we are assuming folks know how to install the hooks.

See also https://direnv.net/docs/hook.html which passes the vibe check as well.

CleanShot 2022-09-20 at 13 01 01@2x

@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 20, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Area: docs stale This issue is like stale bread.
Projects
None yet
Development

No branches or pull requests

2 participants