Skip to content

bi3mer/go-test

Repository files navigation

go-test

alt text

This is inspired by try, a repo I came across and I thought to myself that I would like to use something like that. However, I am also in the process of learning Go, and I was looking for a cool project to work on, and it seemed like a fun project to make myself. So, that's what this repo is, an alternative version of try, written in Go.

Supported Platforms

  • Linux
  • MacOS

Running

After cloning the repo and cd'ing into it, run the following from your terminal of choice:

go run *.go && cd `cat ~/.gotest`

Installing

cd to whatever directory you want to clone the repo to.

git clone https://github.com/bi3mer/go-test.git
cd go-test
go build -o go-test *.go
echo "alias gotest='$(pwd)/go-test && cd \"\$(cat \$gotestdir/.gotest)\"'" >> ~/.bash_profile

You may use something other than ~/.bash_profile, like ~/.zshrc etc.

You should also set the environment variable gotestdir to wherever you want your test directory to be. You should use an absolute path or a relative one starting with ~ (e.g., I use export gotestdir="$HOME/Library/CloudStorage/Dropbox/tests", note that I use $HOME because ~ won't be expanded in the alias command above).

Uninstalling

First, go to ~/bash_profile, ~/.zshrc, or wherever you modified to remove gotest and gotestdir. Also, there will be two files in your configured test directory .gotest and .gotestdb.

License

tl;dr, MIT

All the code I've written is under the MIT license. However, this is written in Go, which is under BSD-3. I also have a dependency on Bubble Tea and Lip Gloss, both of which are under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages