travelgrunt

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: Apache-2.0

README ¶

travelgrunt

Travel Terragrunt directory tree as a first class passenger! ✈

How to use?

  • cd to the directory of your [locally cloned] Terragrunt/Terraform Git repo;
  • run tg alias there 🚀 ([optional] arguments are "path filter" matches);
  • use arrow keys to navigate the list and / key to search for specific items;

Shell aliases

It is absolutelly required to use bash (or zsh) aliases. Start from something like this:

alias tg='_tg(){ travelgrunt --out-file ~/.tg-path ${@} && cd "$(cat ~/.tg-path)" }; _tg'
alias tt='_tt(){ travelgrunt --top --out-file ~/.tg-path && cd "$(cat ~/.tg-path)" }; _tt'

💡 tt is a "convenience alias" that brings you to the top level path of your repository.

Why aliases?

Core feature of this program is the ability to change working directory while staying inside the current shell. This can not be done by the program itself, because of POSIX security limitations. Without instrumenting the shell with aliases travelgrunt will not work!

How to build?

  • make dep - install dependencies;
  • make build - build the travelgrunt binary in cmd/travelgrunt path;
  • make install - [optional] install built travelgrunt binary under the ${PREFIX}/bin location;

How to release a new version?

💡 Set GITHUB_TOKEN environmental variable.

Run make full-release recipe, which is equal to run following, one by one:

  • make clean - cleanup project tree from previously built artifacts;
  • make dep - ensure all dependencies are installed;
  • make release - create release artifacts;
  • make next-version-tag - tag your HEAD with the incremented version;
  • make push-tags - push your new tag to Git;
  • make github - create a GitHub release using your artifacts;

Directories ¶

Path Synopsis
cmd
pkg
scm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳