_______ _______ ___ _______ _______
| | | _ || | | || |
| ___| ____ | |_| || | | _ ||_ _|
| | __ |____| | || | | | | | | |
| || | | || |___ | |_| | | |
| |_| | | _ || || | | |
|_______| |__| |__||_______||_______| |___|
Prints templates to the terminal
- Open Points
- Getting Started
- Add new Template
- Link templates template
g-alot:link{template}
- Replace placeholders in template
g-alot{placeholder}
recursive find templatesdisplay placeholders in templateg-alot{placeholder}
replace placeholders in templateg-alot{placeholder}
include other templates in templateg-alot:link{template}
include other templates in templateg-alot:link{template}
recursiveload templates from cacheg-alot:link{template}
search in templates-f=
→ toLowerCase containscopy to clipboard-c
replace from file
galot -t test-main.groovy -r "content:</etc/passwd,age:88"
- code clean up
- Groovy in
$PATH
variable
- Download the script
git clone ...
- set alias in
~/.zshrc
ot~/.bashrc
alias g-alot="groovy repos/g-alot/GAlot.groovy --home /path/to/g-alot"
- test
g-alot
Just add a file in one of th subfolder in the
g-alot
directory, you can even create new directories.
Those templates will be listed when callingg-alot -l
The template name is a concatination of the filename and its parent directory nameImportant:
after adding a new template you have to reindex the templates:
g-alot -i
org-alot -i -v
for verbose output
g-alot:link{spring-Repository.java}
g-alot:link{spring-IService.java}
g-alot:link{spring-ServiceImpl.java}
g-alot:link{jpa-Entity.java}
Allowed:
A-Z, a-z, 0-9, <,-,/
- Template
test-main.groovy
inG-ALOT Home/test/main.groovy
println "Hello g-alot{name} you are g-alot{age} years old"
- Command
g-alot -t test-main.groovy -r name:lala,age:88
- Output
println "Hello lala you are 88 years old"
- Template
test-main-file.groovy
inG-ALOT Home/test/main-file.groovy
println """
g-alot{content}
"""
- Command
g-alot -t test-main.groovy -r "content:</etc/passwd"
- Output
println """
root:x:0:0:root:/root:/bin/zsh
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
...
"""