Class: Everywhere::Commands::ShellDir

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/everywhere/commands/shell_dir.rb

Overview

Print the absolute path of the gem-bundled shell for a target's os. Output is the bare path so external tooling can capture it — e.g. the build-runner workflows resolve the shell with $(every shell-dir). Default stays the desktop Tauri shell (src-tauri) so existing callers keep working; --target ios prints the Hotwire Native template instead.

Instance Method Summary collapse

Instance Method Details

#call(target: "macos-arm64") ⇒ Object



17
18
19
20
21
22
# File 'lib/everywhere/commands/shell_dir.rb', line 17

def call(target: "macos-arm64", **)
  case Everywhere::Config.os_of(target)
  when "ios" then puts Everywhere::Paths.ios_dir!
  else            puts Everywhere::Paths.shell_dir!
  end
end