yamaton / h2o-curated-data

Semi-hand curated command-line option data for many CLI programs, geared toward bioinformatics tools. Shell completion scripts are also available.
14 stars 0 forks source link

Supporting more tools #1

Open yamaton opened 3 years ago

yamaton commented 3 years ago

Please post a request for CLI programs to support in VS Code "Shell Completion" here.

WoozyMasta commented 3 years ago

Hi, this is a great solution! Could you please add support for kubectl, oc and podman utilities

yamaton commented 3 years ago

@WoozyMasta Thanks for your feedback! Current implementation cannot handle sub-subcommands (like kubectl create clusterrole ...) so it may take some time to support them completely, but I'll work on it.

yamaton commented 3 years ago

@WoozyMasta Added tentative support (up to subcommands) of kubectl, oc, and podman.

WoozyMasta commented 3 years ago

@yamaton Thanks for the quick response.
Autocomplete is already working, which is great, but really not all is well

Before writing this, I updated vscode, cleared the autocomplete cache for utilities and reloaded the CLI data.

yamaton commented 3 years ago

@WoozyMasta Thank you so much for the detailed report. They are helpful!

I updated the podman and kubectl data fixing your points and others. They still work only up to subcommands, though. Will work on it..

yamaton commented 2 years ago

Now supporting multi-level subcommands in the VS Code extension. Also updated podman, kubectl, and oc.

Thanks for the request and patience!

levlist commented 2 years ago

Hi! This is a very useful extension, I use daily basis. Not a bioinformatic tool but it can be helpful the robotframework support as well. Could you please add it to the supported programs?

Thank you!

yamaton commented 2 years ago

@levlist With pleasure!

I've added robot and rebot specs from the robotframework as "experimental". Please load each spec to VS Code by the following. This operation is needed just once.

  1. Make sure you're in the Shell Script mode.
  2. Press Ctrl+Shift+P (or ⌘+⇧+P on macOS).
  3. Choose "Shell Completion: Load Command... [experimental]".
  4. Enter "robot" (excluding the quotes; it should be a command name available in this folder)

Please forgive me for this tentative support; I'm planning to make these addition/removal/request of commands easy.

inno-steffg commented 2 years ago

I've just discovered this extension and installed it. I actually have choosen 'grep' for my first check, but seems like this tool is not in the database, yet. So, I kindly ask for adding it. Regards

yamaton commented 2 years ago

Thanks for your report, @inno-steffg ! I did not add grep data as the extension's parser worked well. But I've just noticed that I didn't test against grep in macOS (BSD grep) where the document looked different...

Anyway, I've added GNU grep command data. Please type ⌘+⇧+P on macOS (Ctrl+Shift+P on non-mac) in "Shell Script" mode and choose Shell Completion: Load Common CLI Data to load command specs.

inno-steffg commented 2 years ago

Works now. Thank you!

caddac commented 2 years ago

can we get gcloud/aws support?

yamaton commented 2 years ago

@caddac I only have experimental support of aws command spec created back in February this year. aws and gcloud require dedicated parsers so I'm not sure I can support them fully in the near future.

Here is a procedure to install the aws command spec from our experimental channel:

  1. open shell script mode in VS Code
  2. Type Ctrl+Shift+P (or ⌘+⇧+P on macOS) and select "Shell Completion: Load Command Spec (experimental)"
  3. Type aws

The experimental channel basically searches this directory and download if the specified command is available.