Flags description
MODIFY
packages/@romefrontend/core/server/commands/check.ts
packages/@romefrontend/core/server/commands/check.ts
@@ -39,9 +39,24 @@ export default createServerCommand<Flags>({
decisions: consumer.get("decisions").asImplicitArray().map((item) =>
item.asString()
),
- apply: consumer.get("apply").asBoolean(false),
- formatOnly: consumer.get("formatOnly").asBoolean(false),
- changed: consumer.get("changed").asStringOrVoid(),
+ apply: consumer.get(
+ "apply",
+ {
+ description: "recommended autofixes and formatting is applied",
+ },
+ ).asBoolean(false),
+ formatOnly: consumer.get(
+ "formatOnly",
+ {
+ description: "only formatting is applied",
+ },
+ ).asBoolean(false),
+ changed: consumer.get(
+ "changed",
+ {
+ description: "only include files that have changed from the specified branch/commit (defaults to main)",
+ },
+ ).asStringOrVoid(),
};
},
async callback(req: ServerRequest, flags: Flags): Promise<void> {

MODIFY
packages/@romefrontend/core/server/commands/ci.ts
packages/@romefrontend/core/server/commands/ci.ts
@@ -23,7 +23,12 @@ export default createServerCommand({
examples: [],
defineFlags(consumer: Consumer): Flags {
return {
- fix: consumer.get("fix").asBoolean(false),
+ fix: consumer.get(
+ "fix",
+ {
+ description: "enables --update-snapshots for test, and --apply for the lint command",
+ },
+ ).asBoolean(false),
};
},
async callback(req: ServerRequest, flags: Flags): Promise<void> {

Flags description (#814)

Co-authored-by: Sebastian <853712+sebmck@users.noreply.github.com>