Sha256: fc14045461f94247d63f504d662d29b1ee302a3cd147c994c399ca2105a1c6d1

Contents?: true

Size: 589 Bytes

Versions: 101

Compression:

Stored size: 589 Bytes

Contents

# uncomment and call with `$ jspec example `

# command :example do |c|
#   c.syntax = 'jspec example [options]'
#   c.description = 'Just an example command'
#   c.option '-f', '--foo string', 'Does some foo with <string>'
#   c.option '-b', '--bar [string]', 'Does some bar with [string]'
#   c.example 'Do some foo', 'jspec example --foo bar'
#   c.example 'Do some bar', 'jspec example --bar'
#   c.when_called do |args, options|
#     p args
#     p options.__hash__
#     # options.foo
#     # options.bar
#     # options.__hash__[:foo]
#     # options.__hash__[:bar]
#   end 
# end

Version data entries

101 entries across 53 versions & 10 rubygems

Version Path
set_builder-2.0.0.beta2 spec/commands/example_command.rb
set_builder-2.0.0.beta1 spec/commands/example_command.rb
set_builder-1.2.0.beta3 spec/commands/example_command.rb
set_builder-1.2.0.beta2 spec/commands/example_command.rb
set_builder-1.2.0.beta1 spec/commands/example_command.rb
set_builder-1.1.0 spec/commands/example_command.rb
set_builder-1.0.2 spec/commands/example_command.rb
gentooboontoo-jspec-4.3.3 spec/commands/example_command.rb
gentooboontoo-jspec-4.3.3 templates/default/spec/commands/example_command.rb
gentooboontoo-jspec-4.3.3 templates/rails/commands/example_commands.rb
bootcamp-0.1.4 vendor/test_suites/jspec/spec/commands/example_command.rb
bootcamp-0.1.4 vendor/test_suites/jspec/templates/default/spec/commands/example_command.rb
bootcamp-0.1.4 vendor/test_suites/jspec/templates/rails/commands/example_commands.rb
bootcamp-0.1.0 vendor/test_suites/jspec/templates/rails/commands/example_commands.rb
bootcamp-0.1.0 vendor/test_suites/jspec/spec/commands/example_command.rb
bootcamp-0.1.0 vendor/test_suites/jspec/templates/default/spec/commands/example_command.rb
uki-1.1.4 frameworks/uki/spec/commands/example_command.rb
uki-1.1.3 frameworks/uki/spec/commands/example_command.rb
uki-1.1.2 frameworks/uki/spec/commands/example_command.rb
ice-0.3.0 ice_js/spec/commands/example_command.rb