INNER CODE UNIT · TypeScript
cmd
aerogear/offix · packages/cli/src/index.ts:7
export const cmd = () => {
// eslint-disable-next-line no-unused-expressions
yargs
.command(
"generate [schema] [outputPath]",
"Generate Datastore config",
(y) => {
y.positional("schema", {
describe: "The schema path",
default: "./src/models/",
type: "string"
}).positional("outputPath", {
describe: "The output dir path",
default: "./src/datasync/generated",
type: "string"
});
},
(argv) => generate(argv.schema as string, argv.outputPath as string)