lib/launcher/cli.rb
# Displays a table within the command line of all the parameters that have been discovered, or those that have 
# passed through a provided regular expression filter.
# For more help on this command, use `launcher help list` from the command line.
Displays a table within the command line of all the parameters that have been discovered, or those that have
passed through a provided regular expression filter.
For more help on this command, use `launcher help list` from the command line.
Displays a table within the command line of all the parameters that have been discovered or those that have passed through a provided regular expression filter . For more help on this command use ` launcher help list ` from the command line .
def list
      discovered = Launcher::Parameters.new
      Launcher::Log.ok "Discovered #{discovered.count} parameters."
      rows = []
      discovered.each { |key, value| 
        val = value[0..30] + (value.length > 30 ? "..." : "")
        rows << [key, val] 
      }
      Launcher::Log.ok "\n", Terminal::Table.new(:headings => ["Key", "Value"], :rows => rows)
    end
def list discovered = Launcher :: Parameters . new Launcher :: Log . ok "Discovered #{discovered.count} parameters." rows = [ ] discovered . each { | key , value | val = value [ 0 .. 30 ] + ( value . length > 30 ? "..." : "" ) rows << [ key , val ] } Launcher :: Log . ok "\n" , Terminal :: Table . new ( :headings => [ "Key" , "Value" ] , :rows => rows ) end
Displays a table within the command line of all the parameters that have been discovered, or those that have
passed through a provided regular expression filter.
Displays a table within the command line of all the parameters that have been discovered or those that have passed through a provided regular expression filter .