Skip to content

Commit

Permalink
Disable the test-data-generation portion of the CLI since the feature…
Browse files Browse the repository at this point in the history
… is broken (#1173)

* Disable the generate-test-data command as it appears broken

* Update the node-elm-compiler dependency
  • Loading branch information
DamianReeves authored Aug 21, 2024
1 parent 230fb61 commit a321930
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 23 deletions.
39 changes: 24 additions & 15 deletions cli2/morphir.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
#!/usr/bin/env node
// NPM imports
import path from 'path'
import {Command} from 'commander'
import path from "path";
import { Command } from "commander";

// Read the package.json of this package
const packageJson = require(path.join(__dirname, '../../package.json'))
const packageJson = require(path.join(__dirname, "../../package.json"));

// Set up Commander
const program = new Command()
const program = new Command();
program
.version(packageJson.version, '-v, --version')
.command('make', 'Translate Elm sources to Morphir IR')
.command('scala-gen', 'Generate scala code from Morphir IR')
.command('json-schema-gen', 'Generate Json Schema from the Morphir IR')
.command('snowpark-gen','Generate Scala with Snowpark code from Morphir IR')
.command('stats', 'Collect morphir features used in a model into a document')
.command('dockerize', 'Creates a docker image of a Morphir IR and Morphir Develop')
.command('test-coverage', 'Generates report on number of branches in a Morphir value and TestCases covered')
.command('generate-test-data', 'Creates a docker image of a Morphir IR and Morphir Develop')
.command('init', 'Launches an interactive session to initialize a new morphir project.')
.parse(process.argv)
.version(packageJson.version, "-v, --version")
.command("make", "Translate Elm sources to Morphir IR")
.command("scala-gen", "Generate scala code from Morphir IR")
.command("json-schema-gen", "Generate Json Schema from the Morphir IR")
.command("snowpark-gen", "Generate Scala with Snowpark code from Morphir IR")
.command("stats", "Collect morphir features used in a model into a document")
.command(
"dockerize",
"Creates a docker image of a Morphir IR and Morphir Develop"
)
.command(
"test-coverage",
"Generates report on number of branches in a Morphir value and TestCases covered"
)
//.command('generate-test-data', 'Creates a docker image of a Morphir IR and Morphir Develop')
.command(
"init",
"Launches an interactive session to initialize a new morphir project."
)
.parse(process.argv);
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"jest": "^27.5.1",
"json-schema": "^0.4.0",
"mocha": "^9.1.3",
"node-elm-compiler": "^5.0.5",
"node-elm-compiler": "^5.0.6",
"shelljs": "^0.8.5",
"tmp": "^0.2.1",
"ts-jest": "^27.1.3",
Expand Down

0 comments on commit a321930

Please sign in to comment.