From 31174134e282d3a056a01128040ba079ddb2200e Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 12 Nov 2024 08:01:27 +0300 Subject: [PATCH 1/5] Fix links to examples --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 481e8b9..4c11d4d 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,19 @@ And you can use your favorite flag or cli library! ## Supported flags and cli libraries: - - [x] [flag](https://golang.org/pkg/flag/) - [example](https://github.com/octago/sflags/blob/master/examples/flag/main.go) - - [x] [spf13/pflag](https://github.com/spf13/pflag) - [example](https://github.com/octago/sflags/blob/master/examples/pflag/main.go) - - [x] [spf13/cobra](https://github.com/spf13/cobra) - [example](https://github.com/octago/sflags/blob/master/examples/cobra/main.go) - - [ ] [spf13/viper](https://github.com/spf13/viper) - - [x] [urfave/cli](https://github.com/urfave/cli) [example](https://github.com/octago/sflags/blob/master/examples/urfave_cli/main.go) - - [x] [kingpin](https://github.com/alecthomas/kingpin) [example](https://github.com/octago/sflags/blob/master/examples/kingpin/main.go) + - [x] [flag] - [example](./examples/flag/main.go) + - [x] [spf13/pflag] - [example](./examples/pflag/main.go) + - [x] [spf13/cobra] - [example](.examples/cobra/main.go) + - [ ] [spf13/viper] + - [x] [urfave/cli] - [example](./urfave_cli/main.go) + - [x] [kingpin] - [example](./examples/kingpin/main.go) + +[flag]: https://golang.org/pkg/flag/ +[spf13/pflag]: https://github.com/spf13/pflag +[spf13/cobra]: https://github.com/spf13/cobra +[spf13/viper]: https://github.com/spf13/viper +[urfave/cli]: https://github.com/urfave/cli +[kingpin]: https://github.com/alecthomas/kingpin ## Features: From cb64d005ee3f975e781a09d58514c87f33f8a837 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 12 Nov 2024 08:17:35 +0300 Subject: [PATCH 2/5] Reformat as a table --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4c11d4d..d8996b3 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,14 @@ And you can use your favorite flag or cli library! ## Supported flags and cli libraries: - - [x] [flag] - [example](./examples/flag/main.go) - - [x] [spf13/pflag] - [example](./examples/pflag/main.go) - - [x] [spf13/cobra] - [example](.examples/cobra/main.go) - - [ ] [spf13/viper] - - [x] [urfave/cli] - [example](./urfave_cli/main.go) - - [x] [kingpin] - [example](./examples/kingpin/main.go) +| | | +| --- | --- | +|