mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 06:55:26 +02:00
chore(server): Move antlr parser updater to justfile
Signed-off-by: Myzel394 <github.7a2op@simplelogin.co>
This commit is contained in:
parent
d10655996f
commit
0dda74c8cb
20
justfile
20
justfile
@ -23,6 +23,26 @@ show-nvim-logs:
|
||||
test:
|
||||
nix develop --command bash -c 'go test ./... -count=1'
|
||||
|
||||
[working-directory: "./server"]
|
||||
update-antlr-parsers:
|
||||
# aliases
|
||||
cd handlers/aliases && antlr4 -Dlanguage=Go -o ast/parser Aliases.g4
|
||||
|
||||
# fstab
|
||||
cd handlers/fstab && antlr4 -Dlanguage=Go -o ast/parser Fstab.g4
|
||||
|
||||
# sshd_config
|
||||
cd handlers/sshd_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
||||
cd handlers/sshd_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
||||
|
||||
# ssh_config
|
||||
cd handlers/ssh_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
||||
cd handlers/ssh_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
||||
|
||||
# hosts
|
||||
cd handlers/hosts && antlr4 -Dlanguage=Go -o ast/parser Hosts.g4
|
||||
|
||||
|
||||
# Ready for a PR? Run this recipe before opening the PR!
|
||||
ready:
|
||||
just lint
|
||||
|
@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
ROOT=$(git rev-parse --show-toplevel)/server
|
||||
|
||||
# aliases
|
||||
cd $ROOT/handlers/aliases && antlr4 -Dlanguage=Go -o ast/parser Aliases.g4
|
||||
|
||||
# fstab
|
||||
cd $ROOT/hanlders/fstab && antlr4 -Dlanguage=Go -o ast/parser Fstab.g4
|
||||
|
||||
# sshd_config
|
||||
cd $ROOT/handlers/sshd_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
||||
cd $ROOT/handlers/sshd_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
||||
|
||||
# ssh_config
|
||||
cd $ROOT/handlers/ssh_config && antlr4 -Dlanguage=Go -o ast/parser Config.g4
|
||||
cd $ROOT/handlers/ssh_config/match-parser && antlr4 -Dlanguage=Go -o parser Match.g4
|
||||
|
||||
# hosts
|
||||
cd $ROOT/handlers/hosts && antlr4 -Dlanguage=Go -o ast/parser Hosts.g4
|
||||
|
Loading…
x
Reference in New Issue
Block a user