lib/arborist/cli.rb in arborist-0.5.0 vs lib/arborist/cli.rb in arborist-0.6.0

- old
+ new

@@ -257,9 +257,33 @@ Arborist::CLI.log.debug "Registering subcommands from %p" % [ mod ] Arborist::CLI.register_subcommands( mod ) end + # Use this if the following command should not have the pre block executed. + # By default, the pre block is executed before each command and can result in + # aborting the call. Using this will avoid that behavior for the following command + def skips_pre + @skips_pre = true + end + + + # Use this if the following command should not have the post block executed. + # By default, the post block is executed after each command. + # Using this will avoid that behavior for the following command + def skips_post + @skips_post = true + end + + + # Use this if the following command should not have the around block executed. + # By default, the around block is executed, but for commands that might not want the + # setup to happen, this can be handy + def skips_around + @skips_around = true + end + + ############### module_function ############### ### Exit with the specified +exit_code+ after printing the given +message+.