Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Prompt missing template variables#235

Merged
SimonBarendse merged 20 commits intodevelopfrom
feature/prompt-missing-template-vars
Jan 20, 2020
Merged

Prompt missing template variables#235
SimonBarendse merged 20 commits intodevelopfrom
feature/prompt-missing-template-vars

Conversation

@Marton6
Copy link
Copy Markdown
Member

@Marton6 Marton6 commented Jan 6, 2020

No description provided.

@Marton6 Marton6 requested a review from SimonBarendse January 6, 2020 14:55
Comment thread internals/secrethub/run.go Outdated
Comment thread internals/secrethub/run.go Outdated
Comment thread internals/secrethub/variable_reader.go Outdated
Comment thread internals/secrethub/tpl/v1.go Outdated
Comment thread internals/secrethub/variable_reader.go
Comment thread internals/secrethub/inject.go
Comment thread internals/secrethub/variable_reader_test.go Outdated
Comment thread internals/secrethub/variable_reader_test.go Outdated
Comment thread internals/secrethub/variable_reader_test.go Outdated
Comment thread internals/secrethub/variable_reader_test.go Outdated
Comment thread internals/secrethub/variable_reader_test.go Outdated
Comment thread internals/secrethub/variable_reader_test.go
Comment thread internals/secrethub/variable_reader_test.go
Comment thread internals/secrethub/run_test.go
Copy link
Copy Markdown
Member

@SimonBarendse SimonBarendse left a comment

Choose a reason for hiding this comment

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

Almost good to go! 🚀

Just one thing about running in a headless environment.


For convenience, here's a summary of what changes through this PR:

  • prompt for missing template variables (if --no-prompt is not supplied)
  • don't error for invalid template variable values if no template file is used
  • don't error for template variables being configured (via flags or envvars) if v1 templates are used

Comment thread internals/secrethub/variable_reader.go Outdated
@Marton6 Marton6 requested a review from SimonBarendse January 20, 2020 13:41
Copy link
Copy Markdown
Member

@SimonBarendse SimonBarendse left a comment

Choose a reason for hiding this comment

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

Found something to improve in usability.

Comment thread internals/secrethub/variable_reader.go Outdated
Copy link
Copy Markdown
Member

@SimonBarendse SimonBarendse left a comment

Choose a reason for hiding this comment

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

🚀

@SimonBarendse SimonBarendse merged commit e0be4ce into develop Jan 20, 2020
@SimonBarendse SimonBarendse deleted the feature/prompt-missing-template-vars branch January 20, 2020 15:57
@SimonBarendse SimonBarendse mentioned this pull request Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants