workon

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

README

workon GoDoc

workon is a simple tool designed to make it easy to start to work on a Go project.

workon will:

  1. Start a new terminal with the specified path set to its working directory.
  2. Open all the .go files in the specified path, including nested packages, in a new editor. The new editor will have its working directory set to the specified path.

Usage

workon -terminal -editor your.project.path

The terminal used will be determined from the -terminal flag.

The editor used will be determined from, in order:

  1. the -editor flag
  2. the VISUAL environment variable
  3. the EDITOR environment variable

Limitations

Currently workon requires the terminal to be explicitly set with the -terminal flag, since the TERM environment variable is not usable.

TODO

If no terminal or editor is available, select a default one based on the OS.

Documentation

Overview

Command workon starts the preferred terminal with its current working directory set to the specified Go project and opens all the Go files in the preferred editor.

Jump to

Keyboard shortcuts

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