Currently, the steps to create a block from a remote repository are as follows:
change dir to workspace directory
make new directory for the block
change dir into the new directory
run legohdl init <lib>.<block> -remote=<url>
These are too many tedious steps.
By allowing the new command to work with non-empty repositories, the steps would be:
run legohdl new <lib>.<block> -remote=<url>.
Can optionally specify where to locate the block relative to the workspace directory with -path flag. Will only work with repositories that are not already blocks. If they are already blocks, users can use the download command to get them into the workspace directory.
When using a non-empty remote repository for the new command, it will initialize the block from the existing project. This greatly simplifies the steps to get projects remotely into usable blocks.
Currently, the steps to create a block from a remote repository are as follows:
legohdl init <lib>.<block> -remote=<url>
These are too many tedious steps.
By allowing the
new
command to work with non-empty repositories, the steps would be:legohdl new <lib>.<block> -remote=<url>
.Can optionally specify where to locate the block relative to the workspace directory with
-path
flag. Will only work with repositories that are not already blocks. If they are already blocks, users can use thedownload
command to get them into the workspace directory.