Improve hints around `flag create`

Open Beginner friendly
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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 <feature>`.

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 <feature>`.
To change a flag, run `flagsmith flag update <feature>`.
Dominant language
Go
Stars
12
Forks
3
Avg merge
14h 56m
Merged PRs (30d)
8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Flagsmith/flagsmith-cli

All issues in Flagsmith/flagsmith-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.