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

Supporting more tools #1

Open
yamaton opened this issue Jun 23, 2021 · 13 comments
Open

Supporting more tools #1

yamaton opened this issue Jun 23, 2021 · 13 comments

Comments

@yamaton
Copy link
Owner

yamaton commented Jun 23, 2021

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

@WoozyMasta
Copy link

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

@yamaton
Copy link
Owner Author

yamaton commented Oct 20, 2021

@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
Copy link
Owner Author

yamaton commented Oct 20, 2021

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

@WoozyMasta
Copy link

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

  • podman does not display all the available keys
    изображение
    the hint even hints that there is something wrong with the data structure, or it was not parsed correctly
    изображение

  • kubectl does not display all the available keys, and does not work with sub-sub-subcommands and sub-sub-sub-subcommands 😄
    изображение

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

@yamaton
Copy link
Owner Author

yamaton commented Oct 21, 2021

@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
Copy link
Owner Author

yamaton commented Dec 23, 2021

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

Thanks for the request and patience!

@levlist
Copy link

levlist commented Mar 17, 2022

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
Copy link
Owner Author

yamaton commented Mar 17, 2022

@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.

@yamaton yamaton changed the title Adding more bioinformatics tools Supporting more tools Mar 17, 2022
@inno-steffg
Copy link

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
Copy link
Owner Author

yamaton commented Jul 15, 2022

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
Copy link

inno-steffg commented Jul 18, 2022

Works now. Thank you!

@caddac
Copy link

caddac commented Oct 4, 2022

can we get gcloud/aws support?

@yamaton
Copy link
Owner Author

yamaton commented Oct 5, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants