macOS
brew install srgnlocal Homebrew formula metadata
sudo port install srgnMacPorts ports tree · devel/srgn/Portfile · 来源: api.github.com
安装
brew install srgnlocal Homebrew formula metadata
sudo port install srgnMacPorts ports tree · devel/srgn/Portfile · 来源: api.github.com
nix profile install nixpkgs#srgnnixpkgs package indexes · pkgs/by-name/sr/srgn/package.nix · 来源: api.github.com
sudo pacman -S srgnArch Linux sync databases · srgn · 来源: geo.mirror.pkgbuild.com
概览
Code surgeon for precise text and code transplantation
历史
srgn is a Rust command-line search and transformation tool that combines regular-expression scopes with optional syntax-aware scopes based on programming-language grammars. Its author characterizes it as a mix of `tr`, `sed`, `ripgrep`, and tree-sitter.
The public repository was created in 2023 and released v0.1.0 that October. The README records that its earliest core was a Rust rewrite of a tool devoted to German character substitutions; it then expanded into a general code-aware search and transformation utility.
The official installation guide documents release binaries, cargo-binstall, Homebrew, Nix and a repository flake, MacPorts, and compilation through Cargo. The package metadata additionally records a Pacman package, giving srgn unusually broad distribution for a focused refactoring CLI.
srgn can search or transform stdin and files with regular expressions, then narrow operations to syntax-aware language scopes. Actions include replacement, case conversion, deletion, squeezing, and language-specific transformations, and shell completions are built into the CLI.
srgn sits between traditional Unix text filters and IDE refactoring: it preserves a composable command-line interface while using parsers to select structural code regions. Its prebuilt binaries and presence across Cargo, Homebrew, Nix, MacPorts, and Pacman make it especially accessible to polyglot CLI users.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
srgn | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:srgn |
|---|---|
| 版本 | 0.14.2 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/alexpovel/srgn |
| 仓库 | https://github.com/alexpovel/srgn |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
srgn
nix profile install nixpkgs#srgnsrgn 0.14.2-1
A code surgeon for precise text and code transplantation
https://github.com/alexpovel/srgn
sudo pacman -S srgnsrgn
sudo port install srgn来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.