Skip to content

Commit

Permalink
fix(cli): support alpha channel (#413)
Browse files Browse the repository at this point in the history
* support alpha channel

* style: resolve style guide violations

---------

Co-authored-by: oXtxNt9U <[email protected]>
  • Loading branch information
oXtxNt9U and oXtxNt9U authored Jan 26, 2024
1 parent 046d042 commit d058e5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/api/source/commands/config-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export class Command extends Commands.Command {
public configure(): void {
this.definition
.setFlag("token", "The name of the token.", Joi.string())
.setFlag("channel", "The NPM registry channel that should be used.", Joi.string().valid("next", "latest"));
.setFlag(
"channel",
"The NPM registry channel that should be used.",
Joi.string().valid("alpha", "next", "latest"),
);
}

public async execute(): Promise<void> {
Expand Down
6 changes: 5 additions & 1 deletion packages/core/source/commands/config-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export class Command extends Commands.Command {
public configure(): void {
this.definition
.setFlag("token", "The name of the token.", Joi.string())
.setFlag("channel", "The NPM registry channel that should be used.", Joi.string().valid("next", "latest"));
.setFlag(
"channel",
"The NPM registry channel that should be used.",
Joi.string().valid("alpha", "next", "latest"),
);
}

public async execute(): Promise<void> {
Expand Down

0 comments on commit d058e5f

Please sign in to comment.