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

refactor(cli): remove kargo config set|unset in favor of kargo config set-project #1551

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Feb 28, 2024

xref: #1163 (comment)

This introduces a specific command to set the default project, removing the need for the multi-positional kargo config set and kargo config unset commands. Which at present are only used to configure the default project configuration.

Besides this avoiding multi-positional commands, it also improves the documentation in e.g. the kargo config --help output to list available configuration options more precisely.

As kargo config set and kargo config unset are now obsolete, they have been removed.

# Set a default project
kargo config set-project my-project

# Unset a default project
kargo config set-project ""

This introduces a specific command to set the default project,
removing the need for the multi-positional `kargo config set` and
`kargo config unset` commands. Which at present are only used to
configure the default project configuration.

Besides this avoiding multi-positional commands, it also improves the
documentation in e.g. the `kargo config --help` output to list
available configuration options more precisely.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Now that `kargo config set-project` has been introduced. These commands
can be removed, as they took multi-positional arguments while the same
results can be achieved using the new command.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Copy link

netlify bot commented Feb 28, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit dde898c
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/65df1bd165fb1e00072818fc
😎 Deploy Preview https://deploy-preview-1551.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hiddeco hiddeco added this pull request to the merge queue Feb 28, 2024
Merged via the queue into akuity:main with commit 4d8a680 Feb 28, 2024
19 checks passed
@hiddeco hiddeco deleted the set-project-cmd branch February 28, 2024 14:34
@hiddeco hiddeco self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants