Module: Pwl::Commands

Defined in:
lib/pwl/commands/add.rb,
lib/pwl/commands/get.rb,
lib/pwl/commands/base.rb,
lib/pwl/commands/init.rb,
lib/pwl/commands/list.rb,
lib/pwl/commands/stats.rb,
lib/pwl/commands/delete.rb,
lib/pwl/commands/export.rb,
lib/pwl/commands/passwd.rb

Defined Under Namespace

Modules: StatsPresenter Classes: Add, Base, Delete, Export, Get, InacessibleFieldError, Init, List, Passwd, Stats, UnknownFormatError

Constant Summary collapse

EXIT_CODES =
{
  :success               => Message.new('Success.'),
  :aborted               => Message.new('Aborted by user.', 1),
  :passwords_dont_match  => ErrorMessage.new('Passwords do not match.', 2),
  :no_value_found        => Message.new('No value found for <%= name %>.', 3, :name => 'NAME'),
  :file_exists           => ErrorMessage.new('There already exists a locker at <%= file %>. Use --force to overwrite it or --file to specify a different locker.', 4, :file => 'FILE'),
  :file_not_found        => ErrorMessage.new('Locker file <%= file %> could not be found.', 5, :file => 'FILE'),
  :name_blank            => ErrorMessage.new('Name may not be blank.', 6),
  :value_blank           => ErrorMessage.new('Value may not be blank.', 7),
  :list_empty            => Message.new('List is empty.', 8),
  :list_empty_filter     => Message.new('No names found that match filter <%= filter %>.', 9, :filter => 'FILTER'),
  :validation_new_failed => ErrorMessage.new('<%= message %>.', 10, :message => 'Validation of new master password failed'),
  :unknown_format        => ErrorMessage.new('<%= format %> is not a known format.', 11, :format => 'FORMAT'),
  :inaccessible_field    => ErrorMessage.new("Field '<%= field %>' is not accessible.", 12, :field => 'FIELD'),
  :is_dir                => ErrorMessage.new('File expected, but <%= file %> is a directory. Specify a regular file for the locker.', 13, :file => 'FILE'),
}