Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the test-data-generation portion of the CLI since the feature is broken #1173

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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