Repository navigation
feat(cli): add 'concore add-node' to add a starter node to a project - #696
Open
yadavchiragg wants to merge 1 commit into
Open
yadavchiragg wants to merge 1 commit into
yadavchiragg wants to merge 1 commit into
Conversation
concore init --interactive can create nodes, but only when creating a new project. add-node adds a stub source file plus a matching workflow.graphml node to an existing project, picking free file names, renaming the Java class to match, keeping the file's graphics key and line endings. Tests and docs included.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
concore init --interactivecreates stub nodes for Python, C++, Octave, Verilog and Java, but only while creating a new project. Adding another node later means copying a stub and editing workflow.graphml by hand.What
concore add-node <project_dir> --lang python|cpp|octave|verilog|javainituses intosrc/and appends a matching, unconnected node toworkflow.graphml(to be wired up in yEd)script.py,script2.py, ... and for Java renames the class soScript2.javastill compilesTesting
init->add-node->validate->build --type posixrun end to endDocs
Added
concore add-nodeto concore_cli/README.md