Enforce directory-only indexing, validate alias paths, and document pipx usage - #3
Conversation
env sync export, enforce directory-only indexing, validate alias paths, and document pipx usage
💡 Codex ReviewEnvPathShortcutTool/pathindex/cli.py Line 168 in 40dc991 The managed block writes each variable as EnvPathShortcutTool/pathindex/cli.py Lines 175 to 178 in 40dc991 When ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
I doubt these changes. Probably should keep it that simple from first PR. Only what needs to be investigated how to actually prevent paths to files. After then might add more default paths like XDG_ ones or /home/user/.local/share/icons,~/.fonts etc. |
Motivation
/etc/environment).pipxand show examples of exporting the index to env files.Description
path_liketo usePath.is_dir()and updatecollect_alias_entriesaccordingly.normalize_env_name,is_env_name, andreplace_managed_block, constantsMANAGED_ENV_BEGIN/MANAGED_ENV_END, and theenv synccommand implemented incmd_env_syncto export a managed block of env variables.cmd_alias_addto reject alias paths that are not existing directories and keep the existing alias storage behavior viasave_aliases.README.mdwithpipxinstallation instructions, examples forpathi env sync, and a note that only existing directories are indexed.Testing
Codex Task