chaseruskin / legoHDL

An experimental package manager and development tool for Hardware Description Languages (HDL).
https://c-rus.github.io/legoHDL
MIT License
14 stars 2 forks source link

Allow creation of blocks directly from non-empty remote repositories with 'new' command #64

Closed chaseruskin closed 2 years ago

chaseruskin commented 2 years ago

Currently, the steps to create a block from a remote repository are as follows:

  1. change dir to workspace directory
  2. make new directory for the block
  3. change dir into the new directory
  4. 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:

  1. 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.

chaseruskin commented 2 years ago

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.