Sha256: 35c879bb50784d57454925dbe620edd191ff6626d02782c9447036f491a883bc
Contents?: true
Size: 838 Bytes
Versions: 3
Compression:
Stored size: 838 Bytes
Contents
require 'rainbow' module AppStore; end module AppStore::Emigrant # Represents the command line interface class CLI # Initializes CLI instance with given arguments def initialize args # Extract the path (if any) path, = args # Use the default library on this system when no path is specified library = path ? Library.new(path) : Library.default # Loop through all applications library.apps.each do |app| # And print their name, version and whether it's outdated print app.name + ' @ ' + "v#{app.version}".foreground(app.outdated? ? :red : :green) if app.outdated? print " (v#{app.cloudversion} available in the cloud)" end puts sleep(0.75) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
app-store-emigrant-0.0.4 | lib/app-store-emigrant/cli.rb |
app-store-emigrant-0.0.3 | lib/app-store-emigrant/cli.rb |
app-store-emigrant-0.0.2 | lib/app-store-emigrant/cli.rb |