Sha256: e908521f51be3a2a373a4caba434b8c1232be647664666ebe434ba300ed615d9

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

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

require_relative '../lib/aid'

Aid.load_scripts!

plugins = Aid::PluginManager.new
plugins.activate_plugins

Aid.load_configs!

script = Aid::Script.scripts[Aid.script_name]

if ARGV.empty?
  Aid::Scripts::Help.run
  exit 0
end

if script
  script.run(*Aid.script_args)
else
  puts "Script '#{script}' not recognized"
  puts

  Aid::Scripts::Help.run

  exit 1
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aid-0.2.2 exe/aid
abtion-aid-0.3.2 exe/aid
abtion-aid-0.3.1 exe/aid
abtion-aid-0.2.0 exe/aid