All Projects → go-br → lpk

go-br / lpk

Licence: MIT License
Find go projects/packages in your GOPATH

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to lpk

po-util
Classic Edition of po-util: The Ultimate Local Particle Experience for Linux and macOS
Stars: ✭ 51 (+292.31%)
Mutual labels:  utility
task-completed-checker-action
☑️ A GitHub action that checks if all tasks are completed in the pull requests.
Stars: ✭ 30 (+130.77%)
Mutual labels:  utility
Hytilities
Hypixel-focused Quality of Life mod.
Stars: ✭ 53 (+307.69%)
Mutual labels:  utility
to-no-case
Remove an existing case from a string.
Stars: ✭ 15 (+15.38%)
Mutual labels:  utility
EnhanceDiskUtility
SIMBL plugin for Disk Utility that aims to enable Verify / Repair Permissions support
Stars: ✭ 17 (+30.77%)
Mutual labels:  utility
oc-bootstrapper
Easily bootstrap a new October CMS project
Stars: ✭ 86 (+561.54%)
Mutual labels:  utility
HashKode
Kotlin hashcode utilities
Stars: ✭ 15 (+15.38%)
Mutual labels:  utility
react-component-pack
Library that allows you to create context provider groups
Stars: ✭ 32 (+146.15%)
Mutual labels:  utility
chai
Don't let your Mac fall asleep, like a sir
Stars: ✭ 54 (+315.38%)
Mutual labels:  utility
vimclip
Never type outside vim again
Stars: ✭ 70 (+438.46%)
Mutual labels:  utility
vscode-jump
🏃‍♂️ Jump/Select to the Start/End of a word in VSCode
Stars: ✭ 67 (+415.38%)
Mutual labels:  utility
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (+92.31%)
Mutual labels:  utility
ExecutionMaster
Windows utility for intercepting process creation and assigning standard actions to program startup
Stars: ✭ 54 (+315.38%)
Mutual labels:  utility
goto
Goto - The Good Way to Program
Stars: ✭ 14 (+7.69%)
Mutual labels:  utility
multipurpose-bot
a multipurpose discord bot made with dbd.js
Stars: ✭ 32 (+146.15%)
Mutual labels:  utility
couchbackup
CouchDB backup and restore command-line utility.
Stars: ✭ 15 (+15.38%)
Mutual labels:  utility
SimpleCore
.NET C# common/utilities library
Stars: ✭ 11 (-15.38%)
Mutual labels:  utility
go-tools
A utility tool library of Golang.
Stars: ✭ 44 (+238.46%)
Mutual labels:  utility
powerlet
⚡️ Chrome Extension to quickly find and run bookmarklets
Stars: ✭ 17 (+30.77%)
Mutual labels:  utility
proxy-pants
Secured and reliable Proxy based utilities for more or less common tasks.
Stars: ✭ 36 (+176.92%)
Mutual labels:  utility

lpk

Build Status Go Report Card codecov GoDoc Go project version MIT Licensed

A small utility that looks for package in your GOPATH and returns the full path to the package directory.

The problem and the solution

All my projects are in GOPATH and I got tired of typing cd and the full path to the package/software directory.

So I created this little utility that looks in GOPATH and returns the full path to the project, so I can create an alias to change to the project directory and also can search by the project by name, etc.

Install

go get github.com/go-br/lpk

Example of use

Displays full path to the project

Search for the project in GOPATH and displays the full path type lpk project where project is the name of the package or software you are looking for. By default, lpk stops searching after it encounters the first occurrence.

lpk project 

To list all project occurrences use the parameter -list with "all" string

lpk -list=all project

This command will list all the project occurrences including those found in the vendor directly, to ignore the vendor add skipvendor to the -list parameter

lpk -list=all,skipvendor project

Tips

Changes to the project directory automatically

cd $(lpk project)

Set up an alias for the cd and jump straight to your project directory. Example, let's say you want to create an alias to jump directly to the project directory. Just change project by project name in your GOPATH

alias aliasname="cd $(lpk project)"

Another tip, if you are using macOS the following command creates an alias to open the Finder in the project directory. Remember to change the word project by the name of your project in GOPATH

alias aliasname="open $(lpk project)"

Contributing

  • Fork the repo on GitHub
  • Clone the project to your own machine
  • Create a branch with your modifications git checkout -b fantastic-feature.
  • Then commit your changes git commit -m 'Implementation of new fantastic feature'
  • Make a push to your branch git push origin fantastic-feature.
  • Submit a Pull Request so that we can review your changes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].