Преглед на файлове

Rename win_python wrapper to vls_python

cere преди 2 месеца
родител
ревизия
d9566632b8
променени са 2 файла, в които са добавени 8 реда и са изтрити 7 реда
  1. 1 1
      AGENTS.md
  2. 7 6
      vls_python

+ 1 - 1
AGENTS.md

@@ -1,7 +1,7 @@
 # Repository Guidelines
 
 ## Project Structure & Module Organization
-All scripts live at the repository root to be discoverable from the WSL `$PATH`. Wrapper utilities sit alongside their Windows counterparts: `win_edit`, `win_diff`, `win_python`, and `win_svn_dialog`. Shared Subversion helpers reside in `svn_interact/`, with `svn_git_init` symlinked for convenience. Keep new scripts self-contained at the top level or grouped in a subdirectory with a symlinked entry point when reuse is required.
+All scripts live at the repository root to be discoverable from the WSL `$PATH`. Wrapper utilities sit alongside their Windows counterparts: `win_edit`, `win_diff`, `vls_python`, and `win_svn_dialog`. Shared Subversion helpers reside in `svn_interact/`, with `svn_git_init` symlinked for convenience. Keep new scripts self-contained at the top level or grouped in a subdirectory with a symlinked entry point when reuse is required.
 
 ## Build, Test, and Development Commands
 These Bash wrappers ship without a build step; prefer quick local smoke checks instead. Use `bash -n ./script_name` for syntax validation and `shellcheck ./script_name` to surface style or portability issues. When touching `svn_interact` helpers, run them against a staging checkout (`/mnt/d/...`) to confirm argument flow before pushing.

+ 7 - 6
win_python → vls_python

@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
-# winpy.sh — stream Windows python.exe output in WSL
+# vls_python — stream Windows python.exe output in WSL
 # Usage:
-#   winpy.sh script.py [args...]
-#   winpy.sh -c "print('hi')"
-#   winpy.sh -m module [args...]
+#   vls_python script.py [args...]
+#   vls_python -c "print('hi')"
+#   vls_python -m module [args...]
 
 set -euo pipefail
 
@@ -35,9 +35,10 @@ else
 fi
 
 # Optional: convert any remaining args that are existing WSL paths if you set
-# WINPY_CONVERT_ARGS=1 in your environment.
+# VLS_PYTHON_CONVERT_ARGS=1 (WINPY_CONVERT_ARGS is still accepted).
 ARGS=()
-if [[ "${WINPY_CONVERT_ARGS:-0}" == "1" ]]; then
+convert_flag="${VLS_PYTHON_CONVERT_ARGS:-${WINPY_CONVERT_ARGS:-0}}"
+if [[ "$convert_flag" == "1" ]]; then
   for a in "$@"; do
     if [[ -e "$a" ]]; then
       ARGS+=("$(wslpath -w "$a")")