Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simplify generation of completion script

See original GitHub issue

The 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:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

gunnarmorlingcommented, Dec 19, 2021

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.

gunnarmorlingcommented, Aug 16, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cobra/ 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 > (powsybl 4.3.1 API) -
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found