g2a-com / g2a-com/kikd

Improve error message when --tag flag is missing

Open
#2 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

Tag flag (`--tag`) should be treated as required when project actually uses `{{ .Tag }}` placeholder. Otherwise it should be ignored.

#### Steps to reproduce the issue

```sh
go build cmd/deploy/*
cd examples/simple
../../deploy -e local
```

#### What's the expected result?

```
Missing required flag: --tag
```

#### What's the actual result?

```
Value for {{.tag}} placeholder is not specified, available placeholders:
.environment.vars.variable, .service.dir, .service.name, .project.dir, .project.name, .project.vars.variable, .environment.dir, .environment.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.