Sha256: f9828fc5e3fdfefd949f3166078a6b5aae6882da8400ad0aa697035a4b10ce91

Contents?: true

Size: 483 Bytes

Versions: 14

Compression:

Stored size: 483 Bytes

Contents

Rbcli::Configurate.hooks do
	####
	# HOOKS
	###
	# Here you can set hooks that will be run at specified points in the execution chain.
	# Global CLI options are made available to many of the hooks, but command parameters and lineitems are not.
	###

	## Default Action -- (Optional) -- The default code to execute when no subcommand is given.
	# If not present, the help is shown (same as -h)

	default_action do |opts|
		puts "Hello, sir."
		puts "To see the help, use -h"
	end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rbcli-0.3.3 skeletons/project/hooks/default_action.rb
rbcli-0.3.2 skeletons/project/hooks/default_action.rb
rbcli-0.3.1 skeletons/project/hooks/default_action.rb
rbcli-0.3.0 skeletons/project/hooks/default_action.rb
rbcli-0.2.12 skeletons/project/hooks/default_action.rb
rbcli-0.2.11 skeletons/project/hooks/default_action.rb
rbcli-0.2.10 skeletons/project/hooks/default_action.rb
rbcli-0.2.9 skeletons/project/hooks/default_action.rb
rbcli-0.2.8 skeletons/project/hooks/default_action.rb
rbcli-0.2.7 skeletons/project/hooks/default_action.rb
rbcli-0.2.6 skeletons/project/hooks/default_action.rb
rbcli-0.2.5 skeletons/project/hooks/default_action.rb
rbcli-0.2.4 skeletons/project/hooks/default_action.rb
rbcli-0.2.2 skeletons/project/hooks/default_action.rb