Sha256: a1a57bc206f84e39d1d2255995e48e1ddc110c522b8e323ba43a6247fc94513d

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shhh-1.5.4 lib/shhh/app/commands/show_help.rb