bin/braid in norbert-braid-0.4.13 vs bin/braid in norbert-braid-0.5.1

- old
+ new

@@ -90,51 +90,52 @@ * removes metadata from .braids * removes the local directory and commits the removal * does NOT remove the git and git svn remotes in case you still need them around TXT - examples <<-TXT - . braid remove local/dir - TXT - mixin :argument_path, :option_verbose run { Braid.verbose = verbose Braid::Command.run(:remove, path) } } - mode(:setup) { + mode(:diff) { description <<-TXT - Set up git and git-svn remotes. + Show diff of local changes to mirror. TXT - examples <<-TXT - . braid setup local/dir + mixin :argument_path, :option_verbose + + run { + Braid::Command.run(:diff, path) + } + } + + mode(:push) { + description <<-TXT + Push local mirror changes to remote. TXT - mixin :optional_path, :option_verbose + mixin :argument_path, :option_verbose run { Braid.verbose = verbose - Braid::Command.run(:setup, path) + Braid::Command.run(:push, path) } } - mode(:diff) { + mode(:setup) { description <<-TXT - Show diff of local changes to mirror. + Set up git and git-svn remotes. TXT - examples <<-TXT - . braid diff local/dir - TXT + mixin :optional_path, :option_verbose - mixin :argument_path, :option_verbose - run { - Braid::Command.run(:diff, path) + Braid.verbose = verbose + Braid::Command.run(:setup, path) } } mode(:version) { description 'Show braid version.'