A CLI tool to find the absolute path of any folder in your local file system.

Related tags

Command Line way-cli
Overview

Unit Tests

Table of Contents

  1. What is this?
  2. How to use this
  3. Examples of usage
  4. How to compile it

What am I looking at

It's a CLI tool that I made for finding the absolute path for a subdirectory from a certain path so that I can CD to it easily. If you have golang installed, you can build the directory then place its path into your bash/zsh/etc. profile under the path directory so you can call it everywhere.

How to use this

Just call it on a folder name. There are three possible flags:

  • -l - int; limit how many results are retrieved. Default: -1 (infinite)
  • -w - string; set the base directory. Default: current working directory
  • -r - bool; retrieve relative paths instead of absolute paths. Default: false

NOTE: If any flags are set, the target folder name come after all flags

Examples of usage

way build
way -r -l 5 -w /User/me node_modules

How do I compile this

  • Install the Golang runtime (https://go.dev)
  • Navigate to the folder with the project in it
  • Run: go build way.go

How do I add this to my path variables?

  • Open your terminal profile file (mine is .zshrc)
  • Add the path variable on a blank line, like:
export PATH="$PATH/route/to/compiled/binary"
  • OR you can just add it to your usr/bin folder if you're on mac/unix and don't already have a way binary (and you like to live dangerously)

Planned Updates

  • At some point I may add my own logic for accessing subdirectories using coroutines instead of the built-in fs.WalkDir

Changelog

  • 1/15/2022: First release
You might also like...
Grab is a tool that downloads source code repositories into a convenient directory layout created from the repo's URL's domain and path

Grab is a tool that downloads source code repositories into a convenient directory layout created from the repo's URL's domain and path. It supports Git, Mercurial (hg), Subversion, and Bazaar repositories.

The Keel CLI allows you to setup Keel on your local dev machine or on a Kubernetes cluster
The Keel CLI allows you to setup Keel on your local dev machine or on a Kubernetes cluster

keel-cli What is keel-cli The Keel CLI allows you to setup Keel on your local dev machine or on a Kubernetes cluster, launches and manages Keel instan

The Dapr CLI allows you to setup Dapr on your local dev machine or on a Kubernetes cluster

Dapr CLI The Dapr CLI allows you to setup Dapr on your local dev machine or on a

Hasura-fzf - This command has a fzf-like UI that allows you to find and run the file version used by the hasura command

hasura-fzf This command has a fzf-like UI that allows you to find and run the fi

A small CLI tool to check connection from a local machine to a remote target in various protocols.

CHK chk is a small CLI tool to check connection from a local machine to a remote target in various protocols.

kcon is a simple CLI tool to switch the context of your Kubeconfig file.

kcon kcon is a simple CLI tool to switch the context of your Kubeconfig file. Scope The code published here is educational only. Usage Usage of kcon:

a work time management CLI tool for any platform
a work time management CLI tool for any platform

english |日本語 jobgosh | job management tool made with golang for shell a multi-platform work time management CLI tool to track and improve your day to

Cli tool to translate text from any language into german

GERMAN A cli tool for converting text into German. Build Locally $ go build $ go install Dependencies To execute successfully, a free tier DEEPL API

❓🖼 Find the anime scene by image using your terminal
❓🖼 Find the anime scene by image using your terminal

What Anime CLI ❓ 🖼 This application is basically a 🍬 wrapper around trace.moe PREVIEW Usage 🖥 Get Anime By Image File 🗃 what-anime file anime.jp

Releases(v0.0.2)
Owner
Benyakir Horowitz
I am a writer and editor at The Saint Bridged Vineyard press and now their deb developer too, frontend and fullstack.
Benyakir Horowitz
This is a Go Cli app that receives an string path to a log file, and based on it generates and prints in console an encoded polyline with the locations found in the log file.

GEOENCODE GO CLI APP DESCRIPTION This is a Go Cli app that receives an string path to a log file, and based on it generates and prints in console an e

Jose Luis Ojeda 1 Oct 1, 2021
A Go library, used to search and replace relative paths in go.mod files to absolute paths.

gomod-absolutizer gomod-absolutizer is a Go library, used to search and replace relative paths in go.mod files to absolute paths. The library is used

JFrog Ltd. 3 Mar 11, 2022
Godbolt console wrapper for easily execute local file without any security risk and compiler.

Godbolt CLI Godbolt console wrapper for easily execute local file without any security risk and compiler. Install Compile the source code and add to y

aiocat 1 May 22, 2022
A simple CLI use to cleanup old folder

cleanup folder A simple CLI use to cleanup old folder Building $ go build $ ./cleanup Cleanup is a CLI application to remove old folder by max number

Nguyễn Đắc Toàn 0 Oct 30, 2021
remindme is a simple application to set reminders from the CLI that integrates with your system's notification system.

remindme remindme is a simple application to set reminders from the CLI that integrates with your system's notification system. Examples Once the serv

Brian Downs 29 Jan 1, 2022
Go-file-downloader-ftctl - A file downloader cli built using golang. Makes use of cobra for building the cli and go concurrent feature to download files.

ftctl This is a file downloader cli written in Golang which uses the concurrent feature of go to download files. The cli is built using cobra. How to

Dipto Chakrabarty 2 Jan 2, 2022
A client for managing authzed or any API-compatible system from your command line.

zed A client for managing authzed or any API-compatible system from your command line. Installation zed is currently packaged by as a head-only Homebr

authzed 44 Aug 28, 2022
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

null 0 Nov 22, 2021
Aces is a command line utility that lets you encode any file to a character set of your choice.

Aces Any Character Encoding Set Aces is a command line utility that lets you encode any file to a character set of your choice. For example, you could

Ishan Goel 11 Aug 10, 2022