Sha256: 1e24127d589d6bac8bf00b1d577f83829148cc34996fd7dc42544553da673587

Contents?: true

Size: 425 Bytes

Versions: 14

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Neptuno
  module TTY
    # Wrapper class for TTY gem
    module Command
      include TTY::Config
      TTY = ::TTY::Command.new(printer: :null)
      TTYP = ::TTY::Command.new(printer: :pretty)

      def command
        TTY
      end

      def command_p
        TTYP
      end

      def neptuno_command(command)
        `cd #{neptuno_path} && #{command}`
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
neptuno-1.5.0 lib/neptuno/tty/command.rb
neptuno-1.4.10 lib/neptuno/tty/command.rb
neptuno-1.2.1 lib/neptuno/tty/command.rb
neptuno-1.2.0 lib/neptuno/tty/command.rb
neptuno-1.0.10 lib/neptuno/tty/command.rb
neptuno-1.0.9 lib/neptuno/tty/command.rb
neptuno-1.0.8 lib/neptuno/tty/command.rb
neptuno-1.0.7 lib/neptuno/tty/command.rb
neptuno-1.0.6 lib/neptuno/tty/command.rb
neptuno-1.0.5 lib/neptuno/tty/command.rb
neptuno-1.0.3 lib/neptuno/tty/command.rb
neptuno-1.0.2 lib/neptuno/tty/command.rb
neptuno-1.0.1 lib/neptuno/tty/command.rb
neptuno-1.0.0 lib/neptuno/tty/command.rb