Skip to content

Commit

Permalink
fixup! feat(cli): build based on configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Oct 14, 2024
1 parent 3e16ce2 commit f04af20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/cli/src/commands/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export default class Shell extends BaseCommand<typeof Shell> {
};

static flags = {
command: Flags.string({
default: "/bin/sh",
description: "shell command to run",
summary: "shell to run",
}),
config: Flags.file({
char: "c",
default: "cartesi.toml",
Expand All @@ -28,11 +33,6 @@ export default class Shell extends BaseCommand<typeof Shell> {
description: "run as root user",
summary: "run the cartesi machine as the root user",
}),
shell: Flags.string({
default: "/bin/sh",
description: "shell command to run",
summary: "shell to run",
}),
};

public async run(): Promise<void> {
Expand All @@ -58,7 +58,7 @@ export default class Shell extends BaseCommand<typeof Shell> {
// create shell entrypoint
const info: ImageInfo = {
cmd: [],
entrypoint: [this.flags.shell],
entrypoint: [this.flags.command],
env: [],
workdir: "/",
};
Expand Down

0 comments on commit f04af20

Please sign in to comment.