Simplify generation of completion script
See original GitHub issueThe idea is:
- Un-comment the current dummy completions
- Replace them with two actual completion implementations (one for connector list, one for task list), which return the corresponding kcctl command (e.g.
"kcctl", "get-connectors-list"
)
Then, when running the generate command as described in the README, only one slight manual adjustment will be needed for replacing the quotes from the command with backticks, so to make this an actual command invocation.
Subsquently, there should be a command in kcctl for completion script generation (as described in the PicoCLI docs) instead of checking in the script into the kcctl repo. This command implementation ideally will take care of that backtick adjustment above.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
cobra/shell_completions.md at main · spf13/cobra - GitHub
The generated completion scripts will automatically handle completing commands and flags. However, you can make your completions much more powerful by providing ...
Read more >com.powsybl.tools.autocompletion (powsybl 4.3.1 API) - javadoc.io
Utilities to generate a shell autocompletion files for itools commands. ... Simplified command model for completion script generation. BashCompletionTool.
Read more >How to Use the Simplify3D G-Code Scripts - The Machine Bros
Here you will find everything about G-Code Scripts of Simplify3D: How to move the axis, temperature control, extruder control and much more!
Read more >Create and run scripts - Configuration Manager - Microsoft Learn
Create a script In the Software Library workspace, click Scripts. On the Home tab, in the Create group, click Create Script. On the...
Read more >Generating and Installing Completion Scripts | Documentation
Install shell completion scripts generated by your command-line tool. Overview. Command-line tools that you build with ArgumentParser ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
With kcctl being installable via SDKMan soon, we should now add that ability to create the completion script via kcctl create-completion. Otherwise, users won’t have an easy way for obtaining the completion script.
I’ve pushed a commit for the first step described above, handling completions was just getting too unwieldy. What remains to be done is making completion generation an actual command of kcctl itself.