mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-18 23:09:53 +02:00
chore(just): split schemagen into windows and nixos jobs
This commit is contained in:
15
justfile
15
justfile
@@ -1,4 +1,5 @@
|
|||||||
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
|
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
|
||||||
|
|
||||||
export RUST_BACKTRACE := "full"
|
export RUST_BACKTRACE := "full"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@@ -45,13 +46,15 @@ docgen:
|
|||||||
cargo run --package komorebic -- docgen
|
cargo run --package komorebic -- docgen
|
||||||
Get-ChildItem -Path "docs/cli" -Recurse -File | ForEach-Object { (Get-Content $_.FullName) -replace 'Usage: ', 'Usage: komorebic.exe ' | Set-Content $_.FullName }
|
Get-ChildItem -Path "docs/cli" -Recurse -File | ForEach-Object { (Get-Content $_.FullName) -replace 'Usage: ', 'Usage: komorebic.exe ' | Set-Content $_.FullName }
|
||||||
|
|
||||||
schemagen:
|
jsonschema:
|
||||||
cargo run --package komorebic -- static-config-schema > schema.json
|
cargo run --package komorebic -- static-config-schema > schema.json
|
||||||
cargo run --package komorebic -- application-specific-configuration-schema > schema.asc.json
|
cargo run --package komorebic -- application-specific-configuration-schema > schema.asc.json
|
||||||
cargo run --package komorebi-bar -- --schema > schema.bar.json
|
cargo run --package komorebi-bar -- --schema > schema.bar.json
|
||||||
generate-schema-doc .\schema.json --config template_name=js_offline --config minify=false .\static-config-docs\
|
|
||||||
|
|
||||||
generate-schema-doc .\schema.bar.json --config template_name=js_offline --config minify=false .\bar-config-docs\
|
# this part is run in a nix shell because python is a nightmare
|
||||||
|
schemagen:
|
||||||
rm -Force .\bar-config-docs\schema.html
|
rm -rf static-config-docs bar-config-docs
|
||||||
mv .\bar-config-docs\schema.bar.html .\bar-config-docs\schema.html
|
mkdir -p static-config-docs bar-config-docs
|
||||||
|
generate-schema-doc ./schema.json --config template_name=js_offline --config minify=false ./static-config-docs/
|
||||||
|
generate-schema-doc ./schema.bar.json --config template_name=js_offline --config minify=false ./bar-config-docs/
|
||||||
|
mv ./bar-config-docs/schema.bar.html ./bar-config-docs/schema.html
|
||||||
|
|||||||
Reference in New Issue
Block a user