Sha256: 5bd237073fd1aa6f520e884e2037ff41c887cf9ec13f6ed8155e3984893ca0ef
Contents?: true
Size: 662 Bytes
Versions: 5
Compression:
Stored size: 662 Bytes
Contents
# -*- ruby -*- #encoding: utf-8 require 'arborist/cli' unless defined?( Arborist::CLI ) require 'arborist/client' # Command to start an interactive client session. module Arborist::CLI::Client extend Arborist::CLI::Subcommand desc 'Start an interactive client session' long_desc <<-EOF Starts a pry session in an Arborist::Client context. EOF command :client do |cmd| cmd.action do |globals, options, args| begin require 'pry' rescue LoadError => err self.log.debug( err ) exit_now! "This command requires the 'pry' gem." end client = Arborist::Client.new Pry.pry( client ) end end end # module Arborist::CLI::Client
Version data entries
5 entries across 5 versions & 1 rubygems