controllers/interfaces/cli.rb in nano-bots-0.0.9 vs controllers/interfaces/cli.rb in nano-bots-0.0.10
- old
+ new
@@ -10,10 +10,32 @@
def self.handle!
case ARGV[0]
when 'version'
puts NanoBot::GEM[:version]
exit
+ when 'security'
+ result = NanoBot.security.check
+
+ if result[:encryption]
+ puts "\n✅ Encryption is enabled and properly working."
+ puts ' This means that your data is stored in an encrypted format on your disk.'
+ else
+ puts "\n❌ Encryption is not being utilized to store your content."
+ puts ' This means that your data can be easily read because it is stored in plaintext.'
+ end
+
+ if result[:password]
+ puts "\n✅ A password is being used for the encrypted content."
+ puts ' This means that only those who possess the password can decrypt your data.'
+ else
+ puts "\n❌ No custom password is being used for the encrypted content."
+ puts ' This means that anyone can easily decrypt your data.'
+ end
+
+ puts ''
+
+ exit
when 'help', '', nil
puts ''
puts "Nano Bots #{NanoBot::GEM[:version]}"
puts ''
puts ' nb - - eval "hello"'
@@ -32,9 +54,10 @@
puts ' nb cartridge.yml - cartridge'
puts ''
puts ' nb - STATE-KEY state'
puts ' nb cartridge.yml STATE-KEY state'
puts ''
+ puts ' nb security'
puts ' nb version'
puts ' nb help'
puts ''
exit
end