Sha256: 54ddb4b41d69177935651e106443ce968b3c0660edd4c4977971e94a358e6a01
Contents?: true
Size: 698 Bytes
Versions: 2
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true module Moonrelay module Cli class RootCommand < Clamp::Command banner "🌗 moonrelay #{Moonrelay::VERSION}" option ['-v', '--version'], :flag, "Show version information" do puts Moonrelay::VERSION exit 0 end subcommand ["server"], "start server", Moonrelay::Cli::ServerCommand subcommand ["expose"], "expose a local service", Moonrelay::Cli::ExposeCommand subcommand ["proxy"], "proxy local port to a remote service", Moonrelay::Cli::ProxyCommand def self.run super rescue StandardError => exc warn exc.message warn exc.backtrace.join("\n") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moonrelay-0.2.1 | lib/moonrelay/cli/root_command.rb |
moonrelay-0.2.0 | lib/moonrelay/cli/root_command.rb |