Skip to content

Commit

Permalink
Merge pull request #76 from DannyBen/add/snatch-undo
Browse files Browse the repository at this point in the history
Add `--undo` to the `rush snatch` command
  • Loading branch information
DannyBen authored Nov 19, 2023
2 parents 71f8aff + dccf9f0 commit 1017525
Show file tree
Hide file tree
Showing 46 changed files with 113 additions and 73 deletions.
2 changes: 1 addition & 1 deletion doc/rush-add.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-add" "1" "September 2023" "" "Register a local repository."
.TH "rush-add" "1" "November 2023" "" "Register a local repository."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-add.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-add(1) | Register a local repository.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -52,4 +52,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-clone.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-clone" "1" "September 2023" "" "Clone a GitHub package repository."
.TH "rush-clone" "1" "November 2023" "" "Clone a GitHub package repository."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-clone.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-clone(1) | Clone a GitHub package repository.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -104,4 +104,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-completions.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-completions" "1" "September 2023" "" "Generate bash completions."
.TH "rush-completions" "1" "November 2023" "" "Generate bash completions."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-completions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-completions(1) | Generate bash completions.
%
% September 2023
% November 2023

NAME
==================================================
Expand All @@ -24,4 +24,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-config.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-config" "1" "September 2023" "" "Show or edit the configuration file."
.TH "rush-config" "1" "November 2023" "" "Show or edit the configuration file."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-config(1) | Show or edit the configuration file.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -34,4 +34,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-copy.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-copy" "1" "September 2023" "" "Copy a package between local repositories."
.TH "rush-copy" "1" "November 2023" "" "Copy a package between local repositories."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-copy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-copy(1) | Copy a package between local repositories.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -67,4 +67,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-default.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-default" "1" "September 2023" "" "Set a default repository."
.TH "rush-default" "1" "November 2023" "" "Set a default repository."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-default.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-default(1) | Set a default repository.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -44,4 +44,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-edit.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-edit" "1" "September 2023" "" "Edit package files."
.TH "rush-edit" "1" "November 2023" "" "Edit package files."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-edit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-edit(1) | Edit package files.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -44,4 +44,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-get.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-get" "1" "September 2023" "" "Install a package."
.TH "rush-get" "1" "November 2023" "" "Install a package."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-get.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-get(1) | Install a package.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -79,4 +79,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-info.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-info" "1" "September 2023" "" "Show information about a package."
.TH "rush-info" "1" "November 2023" "" "Show information about a package."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-info.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-info(1) | Show information about a package.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -49,4 +49,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-list.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-list" "1" "September 2023" "" "Show packages in one or all repositories."
.TH "rush-list" "1" "November 2023" "" "Show packages in one or all repositories."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-list(1) | Show packages in one or all repositories.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -71,4 +71,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-pull.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-pull" "1" "September 2023" "" "Git pull one or all repositories."
.TH "rush-pull" "1" "November 2023" "" "Git pull one or all repositories."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-pull.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-pull(1) | Git pull one or all repositories.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -41,4 +41,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-push.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-push" "1" "September 2023" "" "Git push one or all repositories."
.TH "rush-push" "1" "November 2023" "" "Git push one or all repositories."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-push.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-push(1) | Git push one or all repositories.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -64,4 +64,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-remove.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-remove" "1" "September 2023" "" "Unregister a local repository."
.TH "rush-remove" "1" "November 2023" "" "Unregister a local repository."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-remove.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-remove(1) | Unregister a local repository.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -56,4 +56,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-search.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-search" "1" "September 2023" "" "Search in package names and info files."
.TH "rush-search" "1" "November 2023" "" "Search in package names and info files."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-search.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-search(1) | Search in package names and info files.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -35,4 +35,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-show.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-show" "1" "September 2023" "" "Show package files."
.TH "rush-show" "1" "November 2023" "" "Show package files."
.hy
.SH NAME
.PP
Expand Down
3 changes: 1 addition & 2 deletions doc/rush-show.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-show(1) | Show package files.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -42,4 +42,3 @@ SEE ALSO
**rush**(1)



7 changes: 6 additions & 1 deletion doc/rush-snatch.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-snatch" "1" "September 2023" "" "Install a package from a remote repo."
.TH "rush-snatch" "1" "November 2023" "" "Install a package from a remote repo."
.hy
.SH NAME
.PP
Expand Down Expand Up @@ -54,12 +54,17 @@ This may mean different things in different packages.
.SS --verbose, -v
.PP
Show additional details if possible.
.SS --undo, -u
.PP
Run the undo script instead of the main script.
.SH EXAMPLES
.IP
.nf
\f[C]
rush snatch james python

rush snatch james python --undo

rush snatch james/other-rush-repo python
\f[R]
.fi
Expand Down
11 changes: 9 additions & 2 deletions doc/rush-snatch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% rush-snatch(1) | Install a package from a remote repo.
%
% September 2023
% November 2023

NAME
==================================================
Expand Down Expand Up @@ -60,12 +60,20 @@ This may mean different things in different packages.
Show additional details if possible.


--undo, -u
--------------------------------------------------

Run the undo script instead of the main script.


EXAMPLES
==================================================

~~~
rush snatch james python
rush snatch james python --undo
rush snatch james/other-rush-repo python
~~~
Expand All @@ -76,4 +84,3 @@ SEE ALSO
**rush**(1)



2 changes: 1 addition & 1 deletion doc/rush-undo.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "rush-undo" "1" "September 2023" "" "Uninstall a package."
.TH "rush-undo" "1" "November 2023" "" "Uninstall a package."
.hy
.SH NAME
.PP
Expand Down
Loading

0 comments on commit 1017525

Please sign in to comment.