class MiGA::Cli::Action::Env

Constants

MIGA
MIGA_HOME
PATH

Public Instance Methods

empty_action() click to toggle source
# File lib/miga/cli/action/env.rb, line 24
def empty_action
end
parse_cli() click to toggle source
# File lib/miga/cli/action/env.rb, line 7
def parse_cli
  cli.parse { |_| }
end
perform() click to toggle source
# File lib/miga/cli/action/env.rb, line 11
  def perform
    puts <<~BASH
      export MIGA="#{MiGA::MiGA.root_path}"
      export MIGA_HOME=${MIGA_HOME:-"$HOME"}
      . "$MIGA_HOME/.miga_rc"
      # Ensure MiGA & submodules are first in PATH
      export PATH="$MIGA/bin:$PATH"
      for util in enveomics/Scripts FastAAI/fastaai multitrim ; do
        export PATH="$MIGA/utils/$util:$PATH"
      done
    BASH
  end

  def empty_action
  end
end