Skip to content

Commit

Permalink
chore: add dashes to the list so IDEs don't reformat
Browse files Browse the repository at this point in the history
Add dashes before each item in the comment explaining how ExpandFileSource()
works so IDEs don't try to reformat the list and remove the indentation in it.
  • Loading branch information
stormqueen1990 committed Oct 29, 2023
1 parent 0516e42 commit 4ec1a7a
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions kustomize/commands/internal/util/configmapSecretFlagsAndArgs.go
Expand Up @@ -85,19 +85,15 @@ func (a *ConfigMapSecretFlagsAndArgs) ValidateSet(args []string) error {
// ExpandFileSource normalizes a string list, possibly
// containing globs, into a validated, globless list.
// For example, this list:
//
// some/path
// some/dir/a*
// bfile=some/dir/b*
//
// - some/path
// - some/dir/a*
// - bfile=some/dir/b*
// becomes:
//
// some/path
// some/dir/airplane
// some/dir/ant
// some/dir/apple
// bfile=some/dir/banana
//
// - some/path
// - some/dir/airplane
// - some/dir/ant
// - some/dir/apple
// - bfile=some/dir/banana
// i.e. everything is converted to a key=value pair,
// where the value is always a relative file path,
// and the key, if missing, is the same as the value.
Expand Down

0 comments on commit 4ec1a7a

Please sign in to comment.