Sha256: 63d67f8f3ed85661d822501426fadbcb9ea2b547ca4564286c5eb3a036d0a853

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau ship
  class Ship < SubCommandBase
    desc 'completion [COMMAND] ', 'Print shell completion code'
    subcommand 'completion', ShipCompletion

    desc 'container [COMMAND]', 'Manage takelship containers'
    subcommand 'container', ShipContainer

    desc 'info [COMMAND]', 'Get info about takelship containers'
    subcommand 'info', ShipInfo

    desc 'project [COMMAND]', 'Manage takelship projects'
    subcommand 'project', ShipProject

    #
    # Top-level ship commands
    #

    desc 'config', 'Alias for tau self config active'
    # tau config: {Takeltau::SelfConfig#active}
    def config
      Takeltau::SelfConfig.new.active
    end

    desc 'login', 'Alias for tau ship container login'
    # ship login: {Takeltau::ShipContainer#login}
    def login
      Takeltau::ShipContainer.new.login
    end

    desc 'podman [ARGS]', 'Alias for tau ship container podman'
    # ship podman: {Takeltau::ShipContainer#podman}
    def podman(*args)
      Takeltau::ShipContainer.new.podman args
    end

    desc 'start [PROJECT]', 'Alias for tau ship project start'
    # ship start: {Takeltau::ShipProject#start}
    def start(project = 'default')
      Takeltau::ShipProject.new.start project
    end

    desc 'stop', 'Alias for tau ship project stop'
    # ship stop: {Takeltau::ShipProject#stop}
    def stop
      Takeltau::ShipProject.new.stop
    end

    desc 'update', 'Alias for tau ship container update'
    # tau update: {Takeltau::ShipContainer#update}
    def update
      Takeltau::ShipContainer.new.update
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
takeltau-0.43.14 lib/takeltau/ship/cli.rb
takeltau-0.43.10 lib/takeltau/ship/cli.rb
takeltau-0.43.6 lib/takeltau/ship/cli.rb
takeltau-0.43.4 lib/takeltau/ship/cli.rb