Sha256: 2fbfc55cb3ea3b020077ebb3c2d7b67413c25a3496e903d1d850b975476da57f
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module Spandx module Cli module Commands class Index < Thor require 'spandx/cli/commands/index/build' require 'spandx/cli/commands/index/update' namespace :index desc 'build', 'Build a package index' method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information' method_option :directory, aliases: '-d', type: :string, desc: 'Directory to build index in', default: '.index' def build(*) if options[:help] invoke :help, ['build'] else Spandx::Cli::Commands::Index::Build.new(options).execute end end desc 'update', 'Update the offline indexes' method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information' def update(*) if options[:help] invoke :help, ['update'] else Spandx::Cli::Commands::Index::Update.new(options).execute end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems