Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geertjohan/pwdip
Print Working Directory Import Path (golang)
https://github.com/geertjohan/pwdip
Last synced: about 1 month ago
JSON representation
Print Working Directory Import Path (golang)
- Host: GitHub
- URL: https://github.com/geertjohan/pwdip
- Owner: GeertJohan
- Created: 2015-03-26T12:37:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-26T14:03:58.000Z (almost 10 years ago)
- Last Synced: 2024-10-31T07:09:46.766Z (3 months ago)
- Language: Go
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## pwdip
**Print Working Directory Import Path** is a tool that prints the Go import path based on the working directory.#### Usage
`pwdip` has no flags or arguments (yet).When the working directory is not located in the GOPATH, `pwdip` prints an error to `stderr` and exits with status code 1.
`pwdip` does not validate the package, it only finds the import path.
#### Example
[rerun](github.com/skelterjohn/rerun) is a simple tool that watches a package and its dependencies, and rebuilds (+runs) it when .go files are changed.It's used as: `rerun `.
Normally it would be called like this:
```
rerun github.com/GeertJohan/gomatrix
```Even if you're already in the gomatrix directory itself. `pwdip` simplifies this to:
```
rerun `pwdip`
```