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: multiple inline environments #476

Merged
merged 10 commits into from
Jan 10, 2021
Merged

feat: multiple inline environments #476

merged 10 commits into from
Jan 10, 2021

Conversation

Duologic
Copy link
Member

@Duologic Duologic commented Jan 9, 2021

This PR provides a solution to work with multiple inline environments. Bulk operations like tk export --recursive and
tk env list will now be able to work on multiple inline environments found in a main.jsonnet. The regular workflow
commands like tk apply, tk show, etc. will require the --name flag if multiple environments are present.

Ideally I'd like an interactive UI for selecting an environment, however there are multiple ways to do it with shell
integrations, for example fzf has been brought up in recent discussions. If we do want an integrated UI, I propose to
introduce that in a separate PR.

closes #432

be9dafc is a rebase of 91651e9 (kudos @sh0rez), which could also have its own PR, this PR just takes it one step further.

commit c15952a comes from #475, need a rebase after it is merged, compare without that commit

sh0rez and others added 3 commits January 9, 2021 19:59
Introduces `Loader.List(path, opts)` which returns all environments that could
possibly be found at path.

This can be used to prompt the user for the correct inline environment,
while the actual Load does not need to be concerned with this
@Duologic Duologic marked this pull request as ready for review January 9, 2021 19:01
cmd/tk/export.go Outdated Show resolved Hide resolved
cmd/tk/flags.go Show resolved Hide resolved
pkg/tanka/load.go Outdated Show resolved Hide resolved
pkg/tanka/list.go Outdated Show resolved Hide resolved
@Duologic Duologic requested a review from sh0rez January 9, 2021 22:53
pkg/tanka/inline.go Outdated Show resolved Hide resolved
pkg/tanka/inline.go Outdated Show resolved Hide resolved
pkg/tanka/find.go Show resolved Hide resolved
@Duologic Duologic requested a review from sh0rez January 10, 2021 10:33
Copy link
Member

@sh0rez sh0rez left a comment

Choose a reason for hiding this comment

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

This is really awesome!! Congrats on pulling this big thing through!

@Duologic
Copy link
Member Author

Thanks for the patience and review efforts.

@Duologic Duologic merged commit a736c82 into master Jan 10, 2021
@Duologic Duologic deleted the duologic/multi_env branch January 10, 2021 11:52
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.

Export muliple inline environments
2 participants