knoch

command module
v0.0.0-...-0b835a5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 1 Imported by: 0

README

Knoch

bundle

Clone missing repositories, sync existing ones

knoch bundle
add

Clone the repository, add it to .knoch

knoch add <REPO/DIR> [<DIR>]
remove

Remove the repository, remove it from .knoch

knoch remove <DIR>
list

List tracked repositories

knoch remove <DIR>
open

Open the selected project in $EDITOR

knoch open <DIR>
show

Show full path of selected project

knoch show <DIR>
help

Output help for everything

knoch help

If you want knoch cd [DIR]

Unfortunately, due to limitations of how - well, I guess how system calls work, this program cannot change directories for you. However, you can create a bash command that can do it for you pretty easily:

# Add this into your .*_profile or .*rc
knoch-cd() {
  cd $(knoch show $1)
}

# If you're on Zsh, this is how you add command completion:
_knoch-cd() {
  _arguments '*:projects:_values $(knoch ls --name-only)'
}
compdef _knoch-cd knoch-cd

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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