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

doc: add Conduit #2230

Merged
merged 1 commit into from
Feb 6, 2025
Merged

doc: add Conduit #2230

merged 1 commit into from
Feb 6, 2025

Conversation

raulb
Copy link
Contributor

@raulb raulb commented Feb 6, 2025

Hi!

We recently added a CLI to a our Conduit project, and we use Cobra to power it.

Here's a blog post mentioning it https://meroxa.com/blog/introducing-the-new-conduit-cli:-a-powerful-tool-for-managing-your-pipelines/

Thanks!

Hi! 

We recently added a CLI to a our Conduit project, and we use Cobra to power it.

Here's a blog post mentioning it https://meroxa.com/blog/introducing-the-new-conduit-cli:-a-powerful-tool-for-managing-your-pipelines/

Thanks!
@raulb raulb mentioned this pull request Feb 6, 2025
40 tasks
Copy link
Collaborator

@marckhouzam marckhouzam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

I couldn't help notice that you have deactivated the conduit completion command.
(https://github.com/ConduitIO/conduit/blob/b145fc42f22ab26381af3e2c3d5c8883be28cdb5/cmd/conduit/main.go#L29)
If you don't like that conduit has a completion command, you can hide it instead of deactivating it (cmd.CompletionOptions.HiddenDefaultCmd = true ). But then you can still tell your users that they can use shell completion with conduit.

I've just tried it with zsh (with a little cobra trick) and it seems to works fine.

# these two first lines use the cobra generic completion script
# from any cobra tool, in this case kubectl
$ source <(kubectl completion zsh)
$ compdef _kubectl conduit

$ conduit <TAB>
config             -- Shows the configuration to be used when running Conduit.
connector-plugins  -- Manage Connector Plugins
connectors         -- Manage Conduit Connectors
help               -- Help about any command
init               -- Initialize Conduit with a configuration file and directories.
open               -- Open in a web browser
pipelines          -- Initialize and manage pipelines
processor-plugins  -- Manage Processor Plugins
processors         -- Manage Processors
run                -- Run Conduit
version            -- Show the current version of Conduit.

@marckhouzam marckhouzam merged commit 17b6dca into spf13:main Feb 6, 2025
20 checks passed
@marckhouzam marckhouzam added this to the 1.9.0 milestone Feb 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants