g2a-com / g2a-com/kikd

Improve error message when --param flag is missing

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Param flag (`--param`) should be treated as required when project actually uses some `{{ .param.* }}` placeholders. Otherwise it should be ignored.

#### Steps to reproduce the issue

```sh
go build cmd/build/*
cd examples/legacy-format
../../build
```

#### What's the expected result?

Error message should inform which parameter is missing and how to specify it. Example message for param named *foobar*:

```
Missing required flag: --param foobar=VALUE
```

#### What's the actual result?

```
...
Value for {{.params.param}} placeholder is not specified, available placeholders:
.service.dir, .service.name, .dirs.project, .dirs.service, .project.dir, .project.name
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.