Simple aliases collection for YeAST
This repository contains scripts that offer a standard way to work with common UNIX utils.
The first idea is to always take input as the first positional argument and write the output on standard output, e.g:
@gcc main.c
# ... is equivalent to:
gcc main.c -o a.out && ./a.out
The second purpose is to offer the same user experience than Haskell Stack, e.g. this script self install its build tools and dependencies at first run:
#!/usr/bin/env stack
-- stack --install-ghc runghc --package regex-compat
import Text.Regex
main = interact (\xs -> subRegex (mkRegex "<!--.*(.*\n)*.*-->") xs "")
We try to provide an equivalent structure with other common language stacks, like e.g. Python:
#!/usr/bin/env @python
# stack --virtual-env pypy3 --pip-install requirements.txt
print("Wow, it was smooth! I'm ready to build stuffs :)")
Kombucha aliases always start with the @
symbol to not enter in conflict with existent software in your PATH
.
By combining these utils we intent to help the writing of simpler and more robust build suites.
The idea of using GitHub as a service to handle aliases was directly inspired by HomeBrew Formula!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Get YeAST binary from source:
curl https://raw.githubusercontent.com/yvan-sraka/YeAST/master/install.sh -sSf | sh
You need an Haskell build environment on your computer, then just:
ghc kombucha.hs -o kombucha
You can also download an executable directly on the release page of the repository.
kombucha <COMMAND>
-h
,--help
Prints help information-V
,--version
Prints version information
update
Update aliases collection contained in.kombucha
folder
export PATH="$HOME/.kombucha:$PATH"
# That's all!
- Random UUID
- TODO Need a kind of namespace == Share $@ using environnement variable
Submitting a package process TODO ...
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who participated in this project.
This project is licensed under the 3rd version of GPL License - see the LICENSE file for details.