Sha256: 1de88dc3914708ece330f6d52b97d07bdd5dbc36b733d836a972d4d0065da9a9

Contents?: true

Size: 652 Bytes

Versions: 9

Compression:

Stored size: 652 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'optparse'
require_relative '../lib/fusuma/plugin/appmatcher.rb'

option = {}
opt = OptionParser.new

opt.on('-l', '--list-applications',
       'List applications') do |v|
  option[:list] = v
end

opt.on('--version', 'Show version') do |v|
  option[:version] = v
end

opt.parse!(ARGV)

if option[:list]
  matcher = Fusuma::Plugin::Appmatcher.backend_klass::Matcher.new
  puts matcher.running_applications
  return
end

if option[:version]
  puts Fusuma::Plugin::Appmatcher::VERSION
  return
end

matcher = Fusuma::Plugin::Appmatcher.backend_klass::Matcher.new
puts matcher.active_application

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fusuma-plugin-appmatcher-0.1.6 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.5 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.4 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.3 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.2 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.1 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.0 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.0.pre2 exe/fusuma-appmatcher
fusuma-plugin-appmatcher-0.1.0.pre exe/fusuma-appmatcher