diff --git a/README.md b/README.md index 3c429b1..6bad125 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ OPTIONS --log-level=(debug|info|warn|error|fatal|panic) [default: info] log level --name=name (required) [default: engine] name of the service running the engine --silent - --version=version (required) [default: v0.10.0] Version of the engine to run + --version=version (required) [default: v0.10.1] Version of the engine to run ``` _See code: [src/commands/daemon/start.ts](https://github.com/mesg-foundation/cli/blob/v1.0.3/src/commands/daemon/start.ts)_ diff --git a/src/commands/daemon/start.ts b/src/commands/daemon/start.ts index 4475163..96a65fe 100644 --- a/src/commands/daemon/start.ts +++ b/src/commands/daemon/start.ts @@ -1,6 +1,7 @@ import {flags} from '@oclif/command' import Command from '../../docker-command' +import version from '../../version'; import Status, {ServiceStatus} from './status' @@ -12,7 +13,7 @@ export default class Start extends Command { version: flags.string({ description: 'Version of the engine to run', required: true, - default: 'v0.10.0' + default: version.engine }), 'log-force-colors': flags.boolean({ description: 'log force colors', diff --git a/src/version.ts b/src/version.ts new file mode 100644 index 0000000..bbe4bfd --- /dev/null +++ b/src/version.ts @@ -0,0 +1,3 @@ +export default { + engine: 'v0.10.1' +} \ No newline at end of file