Skip to content

Commit c73190d

Browse files
committed
chore(manifest): doc generation for 'manifest add' and 'manifest list' commands and lint fix
1 parent 620af57 commit c73190d

File tree

5 files changed

+119
-1
lines changed

5 files changed

+119
-1
lines changed

docs/commands/openfeature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ openfeature [flags]
2626
* [openfeature compare](openfeature_compare.md) - Compare two feature flag manifests
2727
* [openfeature generate](openfeature_generate.md) - Generate typesafe OpenFeature accessors.
2828
* [openfeature init](openfeature_init.md) - Initialize a new project
29+
* [openfeature manifest](openfeature_manifest.md) - Manage flag manifest files
2930
* [openfeature pull](openfeature_pull.md) - Pull a flag manifest from a remote source
3031
* [openfeature version](openfeature_version.md) - Print the version number of the OpenFeature CLI
3132

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- markdownlint-disable-file -->
2+
<!-- WARNING: THIS DOC IS AUTO-GENERATED. DO NOT EDIT! -->
3+
## openfeature manifest
4+
5+
Manage flag manifest files
6+
7+
### Synopsis
8+
9+
Commands for managing OpenFeature flag manifest files.
10+
11+
```
12+
openfeature manifest [flags]
13+
```
14+
15+
### Options
16+
17+
```
18+
-h, --help help for manifest
19+
```
20+
21+
### Options inherited from parent commands
22+
23+
```
24+
--debug Enable debug logging
25+
-m, --manifest string Path to the flag manifest (default "flags.json")
26+
--no-input Disable interactive prompts
27+
```
28+
29+
### SEE ALSO
30+
31+
* [openfeature](openfeature.md) - CLI for OpenFeature.
32+
* [openfeature manifest add](openfeature_manifest_add.md) - Add a new flag to the manifest
33+
* [openfeature manifest list](openfeature_manifest_list.md) - List all flags in the manifest
34+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!-- markdownlint-disable-file -->
2+
<!-- WARNING: THIS DOC IS AUTO-GENERATED. DO NOT EDIT! -->
3+
## openfeature manifest add
4+
5+
Add a new flag to the manifest
6+
7+
### Synopsis
8+
9+
Add a new flag to the manifest file with the specified configuration.
10+
11+
Examples:
12+
# Add a boolean flag (default type)
13+
openfeature manifest add new-feature --default-value false
14+
15+
# Add a string flag with description
16+
openfeature manifest add welcome-message --type string --default-value "Hello!" --description "Welcome message for users"
17+
18+
# Add an integer flag
19+
openfeature manifest add max-retries --type integer --default-value 3
20+
21+
# Add a float flag
22+
openfeature manifest add discount-rate --type float --default-value 0.15
23+
24+
# Add an object flag
25+
openfeature manifest add config --type object --default-value '{"key":"value"}'
26+
27+
```
28+
openfeature manifest add [flag-name] [flags]
29+
```
30+
31+
### Options
32+
33+
```
34+
-d, --default-value string Default value for the flag (required)
35+
--description string Description of the flag
36+
-h, --help help for add
37+
-t, --type string Type of the flag (boolean, string, integer, float, object) (default "boolean")
38+
```
39+
40+
### Options inherited from parent commands
41+
42+
```
43+
--debug Enable debug logging
44+
-m, --manifest string Path to the flag manifest (default "flags.json")
45+
--no-input Disable interactive prompts
46+
```
47+
48+
### SEE ALSO
49+
50+
* [openfeature manifest](openfeature_manifest.md) - Manage flag manifest files
51+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- markdownlint-disable-file -->
2+
<!-- WARNING: THIS DOC IS AUTO-GENERATED. DO NOT EDIT! -->
3+
## openfeature manifest list
4+
5+
List all flags in the manifest
6+
7+
### Synopsis
8+
9+
Display all flags defined in the manifest file with their configuration.
10+
11+
```
12+
openfeature manifest list [flags]
13+
```
14+
15+
### Options
16+
17+
```
18+
-h, --help help for list
19+
```
20+
21+
### Options inherited from parent commands
22+
23+
```
24+
--debug Enable debug logging
25+
-m, --manifest string Path to the flag manifest (default "flags.json")
26+
--no-input Disable interactive prompts
27+
```
28+
29+
### SEE ALSO
30+
31+
* [openfeature manifest](openfeature_manifest.md) - Manage flag manifest files
32+

internal/cmd/manifest_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func displayFlagList(fs *flagset.Flagset, manifestPath string) {
7777
}
7878

7979
// Render table
80-
pterm.DefaultTable.WithHasHeader().WithData(tableData).Render()
80+
_ = pterm.DefaultTable.WithHasHeader().WithData(tableData).Render()
8181
}
8282

8383
// formatValue converts a value to a string representation suitable for display

0 commit comments

Comments
 (0)