launch

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package launch reads the folder a command line asks a local terminal to open in.

Index

Constants

View Source
const RelaunchFlag = "--sshyard-relaunch"

RelaunchFlag replaces the command line on an app-initiated restart.

Variables

This section is empty.

Functions

func Dir

func Dir(args []string, wd string) string

Dir returns the folder args ask a local terminal to open in, "" for none. It takes --path DIR, --path=DIR, -p DIR, or the first argument that is not a flag; relative paths are relative to wd, and a leading "~" is the user's home folder. Flags of the platform and the launcher are ignored, including RelaunchFlag and macOS' -psn_0_….

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL