Sha256: 84bb251e0155405c882b76c1c114e7e132c5db007839b4a02fef845539509253

Contents?: true

Size: 351 Bytes

Versions: 6

Compression:

Stored size: 351 Bytes

Contents

require_relative 'command'
module Shhh
  module App
    module Commands
      class ShowHelp < Command

        required_options :help, ->(opts) { opts.to_hash.keys.all? { |k| !opts[k] } }
        try_after :generate_key, :open_editor, :encrypt_decrypt

        def execute
          opts.to_s(prefix: ' ' * 2)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shhh-1.7.0 lib/shhh/app/commands/show_help.rb
shhh-1.6.5 lib/shhh/app/commands/show_help.rb
shhh-1.6.4 lib/shhh/app/commands/show_help.rb
shhh-1.6.3 lib/shhh/app/commands/show_help.rb
shhh-1.6.2 lib/shhh/app/commands/show_help.rb
shhh-1.6.1 lib/shhh/app/commands/show_help.rb