command
module
Version:
v0.0.0-...-1041d76
Opens a new window with list of versions in this module.
Published: Mar 30, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gola
A script launcher written in Go.
Installation
$ go install github.com/hattya/gola@latest
Usage
$ gola [PATH] [OPTION]...
Configuration
-
dir
This is used for if the specified path is a directory or a zip file. It is
redirected to a file that exists in the specified path.
Note: The extension does not change.
-
map
Described in the Example configuration.
Search order for configuration files
-
gola.json
- same location of the executable binary
-
settings.json
- user's configuration directory
-
UNIX
$XDG_CONFIG_HOME/gola/settings.json
-
macOS
~/Library/Application Support/gola/settings.json
-
Windows
%APPDATA%\gola\settings.json
Example configuration
{
"dir": [
// Python can execute a directory or a zip file that
// contains a __main__.py.
"__main__.py"
],
"map": {
// This matches following cases:
// - #!/usr/bin/env python
// - #!/usr/bin/python
// - #!C:\Python27\python.exe
// - #!python.exe
"python": {
// This matches ".pyw" extension
".pyw": "C:\\Python27\\pythonw.exe",
// This matches all extensions except mapped extensions
"": "C:\\Python27\\python.exe"
},
// This matches following cases:
// - #!/usr/bin/env python3.9
// - #!/usr/bin/env python3
// - #!/usr/bin/python3.9
// - #!/usr/bin/python3
// - #!python3.9.exe
// - #!python3.exe
"python3": {
".pyw": "C:\\Python39\\pythonw.exe",
"": "C:\\Python39\\python.exe"
}
}
}
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.