provider-kairos/internal/cli
Mauro Morales 1d074c4fda
Upgrade urfave/cli and make register's config flag required (#146)
With the upgrade of the cli pkg, making flags required is very simple,
it just needs an attribute `required: true`

Fixes https://github.com/kairos-io/kairos/issues/375

⚠️ breaking UX change

> In v2 flags must come before args. This is more POSIX-compliant. You
may need to update scripts, user documentation, etc.

This means that 

```
provier-kairos command ARG FLAG
```

is no longer valid, but I still think the change is worth it because
like the documentation says, the CLI will be more POSIX-compliant

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: ci-robbot [bot] <105103991+ci-robbot@users.noreply.github.com>
Co-authored-by: mudler <mudler@users.noreply.github.com>
2022-12-27 19:29:01 +00:00
..
bridge.go Upgrade urfave/cli and make register's config flag required (#146) 2022-12-27 19:29:01 +00:00
config_suite_test.go 🎨 Initial import of provider code 2022-08-16 08:27:04 +00:00
config_test.go ⚠️ Change P2P configuration setting reference 2022-12-09 16:36:30 +01:00
recovery_linux.go Add recovery event 2022-08-16 12:45:27 +00:00
recovery_windows.go Add recovery event 2022-08-16 12:45:27 +00:00
recovery.go 🎨 Rebrand 2022-09-16 15:42:45 +00:00
register.go Check that QR file paths are readable and are not directories (#141) 2022-12-21 16:05:33 +00:00
rotate.go ⚠️ Change P2P configuration setting reference 2022-12-09 16:36:30 +01:00
start.go Upgrade urfave/cli and make register's config flag required (#146) 2022-12-27 19:29:01 +00:00