mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-27 19:19:35 +08:00
1.1 KiB
1.1 KiB
rawstr4c input for Python
- prefix =
RAWSTR_pl_python
- output =
:global-variable-only-header
- translate =
:hex
- keep-postfix =
false
uv
uv config source content
[[index]]
url = "@url@"
default = true
Get uv config
grep -A 2 'index' @f@ | sed -n 's/^url = "\(.*\)"/\1/p'
Set uv config
@sed@ '/^\[\[index\]\]$/,/^default = true$/{s|^url = ".*"$|url = "@url@"|}' @f@
Final uv cmd
grep -q '^[[index]]$' @f@ && @ucmd@ || @acmd@
Rye
- name =
rye_config
[[sources]]
name = "@1@"
url = "@2@"