cdp

command module
v0.0.0-...-cae3db3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 0

README

What it is?

Are you a terminal loving dev/dev-ops/SRE/whatever who hates cd-ing all day through multiple projects? Are you constantly pissed that your company decided service orientation was a good thing? Fear not!

CDP(CD Project, no connection with the creators of The Witcher even though I'm a fan) is a small CLI program that helps you exactly with that. It traverses predefined directories set by you, looking for hints that a directory is a project (called markers, stuff like node_modules, .git, configurable by you from the config file and possibly from CLI flags in the future).

Instructions

How to install

  1. Clone the repository.
  2. Either: a. Run make install, which will build and move the executable to /usr/local/bin/cdp (requires sudo and a Unix-like OS). b. Use the golang toolchain to build the executable: go build -o <whatever> cmd/main.go and do something with it (Might work on Windows, not tested).

Usage

Usage:
  cdp [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  edit        Open project in the editor.
  help        Help about any command
  last        Show the last project opened with cdp.
  mux         Open project in a mux session
  shell       Open a shell in the project's directory.

Flags:
      --config string   config file (default is $HOME/.config/cdp/config.yaml (default "c")
  -h, --help            help for cdp
  -l, --last            Change to the last project.

Use "cdp [command] --help" for more information about a command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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