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

feat: set default target #1269

Merged
merged 3 commits into from
Oct 18, 2024
Merged

feat: set default target #1269

merged 3 commits into from
Oct 18, 2024

Conversation

idagelic
Copy link
Member

@idagelic idagelic commented Oct 18, 2024

Set default target

Description

Adds daytona target-set [TARGET_NAME] which allows daytona create <REPO_URL> to work without prompting the user which target they want. The latest target to be created or updated is automatically set to default.
Minor refactors along the way.
The setting to default logic has been implemented the same way as it has been for project configs

  • This change requires a documentation update
  • I have made corresponding changes to the documentation

Related Issue(s)

Closes #1200
Docs PR - daytonaio/docs#180

Screenshots

image

Notes

Breaking change - before running the Server again, all providers will need to be removed by running the following command:

Linux: rm -rf ~/.config/daytona/providers/*-provider/*-provider
Mac: rm -rf ~/Library/Application\ Support/daytona/providers/*-provider/*-provider
Windows (PowerShell):
Remove-Item -Recurse -Force "C:\Users\<USERNAME>\AppData\Roaming\daytona\providers\*-provider\*-provider.exe"

Signed-off-by: Ivan Dagelic <[email protected]>
@idagelic idagelic requested review from a team as code owners October 18, 2024 10:50
pkg/cmd/target/set.go Show resolved Hide resolved
Signed-off-by: Ivan Dagelic <[email protected]>
@idagelic idagelic merged commit 5130f09 into main Oct 18, 2024
12 checks passed
@idagelic idagelic deleted the default-target branch October 18, 2024 14:43
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.

Default target
3 participants