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

"add" command #4

Closed
kevin-hanselman opened this issue May 12, 2020 · 0 comments
Closed

"add" command #4

kevin-hanselman opened this issue May 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@kevin-hanselman
Copy link
Owner

kevin-hanselman commented May 12, 2020

duc add <file/dir ...> will:

  • Create a stage with the files/dirs as the outputs and write the stage to the workspace
  • Add a pointer to the stage to the index and mark it for commit
  • (This command will subsume and replace duc track)

duc add <Ducfile> will:

  • Add the Ducfile to the index if it isn't present
  • Mark the Ducfile for commit in the index
@kevin-hanselman kevin-hanselman added the enhancement New feature or request label May 12, 2020
seantur added a commit that referenced this issue May 17, 2020
The add command is able to add new files to a stage (depricating
"track") and add the new stage to the index/commit list, or add
existing stages to the index/commit list. The getRoot function is
used to get any parent directories with a .duc folder, which is used
to locate the config and index.

continues #4
seantur added a commit that referenced this issue May 24, 2020
The add command is able to add new files to a stage (depricating
"track") and add the new stage to the index/commit list, or add
existing stages to the index/commit list. The getRoot function is
used to get any parent directories with a .duc folder, which is used
to locate the config and index. The commit command now accepts no args
and will commit every stage in the commitSet. After commiting, the
commitSet in the index is cleared.

closes #4
closes #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant