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

Fix for issue #89: Add ctoSystem option to CLI, other CLI improvements #113

Merged
merged 5 commits into from
Oct 8, 2019

Conversation

jeromesimeon
Copy link
Member

Issue #89

  • Add --ctoSystem option to CLI
  • Default system is base Accord Project one
  • Refactor so system and user models are loaded consistently from disk or URL in the various commands
  • Add info output when cicero get succeeds

Examples:

bash-3.2$ ./index.js get --ctoFiles https://models.accordproject.org/docusign/[email protected] --outputDirectory dsout 
./index.js get --ctoFiles https://models.accordproject.org/docusign/[email protected] --outputDirectory dsout 
13:26:55 - info: Loaded external models in 'dsout'.
bash-3.2$ ./index.js get --ctoSystem ./test/models/org.hyperledger.composer.system.cto --ctoFiles https://models.accordproject.org/docusign/[email protected] --outputDirectory dsout 
./index.js get --ctoSystem ./test/models/org.hyperledger.composer.system.cto --ctoFiles https://models.accordproject.org/docusign/[email protected] --outputDirectory dsout 
13:27:06 - error: Relationship transactionInvoked must be to an asset or participant, but is to org.hyperledger.composer.system.Transaction File './test/models/org.hyperledger.composer.system.cto': line 137 column 3, to line 138 column 3. 

@jeromesimeon jeromesimeon added the Hacktoberfest by DigitalOcean and DEV label Oct 8, 2019
@jeromesimeon jeromesimeon merged commit db9cd83 into master Oct 8, 2019
@jeromesimeon jeromesimeon deleted the js-vi-fix-issue-89 branch October 8, 2019 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest by DigitalOcean and DEV
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants