Skip to content

Commit

Permalink
fixes some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Maucourt committed Feb 18, 2022
1 parent 9c3550f commit c97d0ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions leeloo/lib/leeloo/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def run
default_command :wrapper

command :wrapper do |c|
c.syntax = 'leeloo [options]'
c.description = "Display secrets"
c.option '--ascii', nil, 'display secrets without unicode tree'
c.option '--keystore STRING', String, 'a selected keystore'
c.option '--clipboard', nil, 'copy to clipboard'
c.action do |args, options|
unless args == []
name = args.first
Expand Down Expand Up @@ -171,7 +176,6 @@ def run
c.description = "Display a secret from a keystore"
c.option '--keystore STRING', String, 'a selected keystore'
c.option '--clipboard', nil, 'copy to clipboard'
c.option '--keystore STRING', String, 'a selected keystore'

c.action do |args, options|
abort "name is missing" unless args.length == 1
Expand Down Expand Up @@ -221,7 +225,8 @@ def run
name = args.first
ctl = SecretController.new(options)
ctl.remove(name)
ctl.display
#ctl.display
puts "done."
end
end

Expand Down
2 changes: 1 addition & 1 deletion leeloo/lib/leeloo/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Leeloo
VERSION = '0.5.0'.freeze
VERSION = '0.5.1'.freeze
DESCRIPTION = "The easiest way to share securely your secrets".freeze
end

0 comments on commit c97d0ab

Please sign in to comment.