Flagsmith / Flagsmith/flagsmith-cli

Improve hints around `flag create`

Open Beginner friendly
#64 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
12
Forks
3
Avg merge
14h 56m
Merged PRs (30d)
8

Description

Testers report confusion upon seeing this message:

```
matvei@macstream ~ % flagsmith flag list
No flags.
matvei@macstream ~ % flagsmith flag create
Error: flags exist per environment, so there is nothing to create
To create the feature itself, run `flagsmith feature create `.
```

It seems we can do a better job directing users to `feature create`, e.g.:

```
matvei@macstream ~ % flagsmith flag create
Error: flags can only be changed, not created.
To create a feature, run `flagsmith feature create `.
To change a flag, run `flagsmith flag update `.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the implementation of the `flag create` command and the code that produces its current error message. Update the guidance to explain that flags are changed rather than created, point users to `feature create` and `flag update`, and verify the resulting command output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.