Skip to content

Commit

Permalink
Changes description Cliffy version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
TakayasuKoura committed Jul 19, 2022
1 parent 4bafd3d commit 83a87ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions dim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ await new Command()
.action(new InitAction().execute),
)
.command(
"install [url:string]",
"install",
new Command()
.arguments("[url:string]")
.option(
"-p, --preprocess <preprocess>",
"Specify pre-processing when installing.",
{ collect: true },
)
.option(
"-n, --name [name]",
"-n, --name <name:string>",
"Specify the name.",
)
.description(
Expand All @@ -44,8 +45,9 @@ await new Command()
.action(new InstallAction().execute),
)
.command(
"uninstall <url:string>",
"uninstall",
new Command()
.arguments("<url:string>")
.description(
"Uninstall the data.\n" +
"Specify the data name or data url.",
Expand All @@ -63,8 +65,9 @@ await new Command()
.action(new ListAction().execute),
)
.command(
"update [url:string]",
"update",
new Command()
.arguments("[url:string]")
.option(
"-p, --preprocess <preprocess>",
"Specify pre-processing when installing.",
Expand Down
4 changes: 2 additions & 2 deletions libs/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class InitAction {

export class InstallAction {
async execute(
options: { preprocess?: [string]; name?: string },
options: { preprocess?: string[]; name?: string },
url: string | undefined,
) {
await createDataFilesDir();
Expand Down Expand Up @@ -241,7 +241,7 @@ export class UninstallAction {

export class ListAction {
execute(
options: { simple: boolean },
options: { simple?: boolean },
): void {
const contents = new DimLockFileAccessor().getContents();
contents.forEach((content) => {
Expand Down

0 comments on commit 83a87ee

Please sign in to comment.