Comments (6)
+1 to renaming the tool and re-branding sooner rather than later. Judging by the commit history, this project seems to be less than a year old, so changing the name now will be so, so much less painful than it will be to do so later. The original sg
is at least 16 years old and seems to be required as part of the base system on Debian and Arch Linux (and possibly others as well, but I haven't checked), so it's only a matter of time until the name conflict starts causing problems for people.
Maybe it could be renamed to astg
? Or maybe it could be called by the full name, ast-grep
, and if users want a shorter name they could rename or symlink the binary or add a shell alias to whatever name they like.
from ast-grep.
Thank you for your suggestion! ast-grep v5 now adds both ast-grep
and sg
as binary names!
from ast-grep.
Renaming the command will involve rebranding which I would want to avoid.
However, I can add a tip in README for renaming the command.
from ast-grep.
Thank you for your awesome tool. I'm testing it right know and already liking it.
But I get the name clash on Linux as well. Always writing ~/.cargo/bin/sg
is tedious. And changing PATH
order (~/cargo/bin
before /usr/bin
) is not an option as it is really dangerous.
As the tool is relative new, I would strongly consider renaming it now. It hurts, sure, but renaming will get harder and harder in the future when it has gained more traction (which it will/has already).
Renaming it will always be a question/request and could become a necessity for wider adoption/less complaints.
Maybe seg
or smg
? Maybe just create a link to sg
or create a second binary with a new name?
from ast-grep.
Good advice! I will try to ship two commands in the installation, one is sg
and another is ast-grep
.
This backward-compatible way should solve the pain point for Linux users!
from ast-grep.
This is awesome, thank you very much!
from ast-grep.
Related Issues (20)
- separate env from local utils, global utils, local rewrite and global rewrite
- move fixer to RuleWithConstraints
- [refactor] remove MetaVarMatcher HOT 1
- [refactor] remove IndentSensitive trait
- [bug] Escape problem in String HOT 3
- [feature] improve rule parsing and error reporting
- [feature] use php-only-language in php pattern HOT 1
- [feature] AST diff, with option to ignore variable/function name changes HOT 4
- [feature] simplify transformation and introduce `selector` HOT 4
- [feature] search function invocation without specifying arguments. HOT 1
- [feature] Verbose logging or some way to see what's happening
- [feature] Add TOML support
- [feature] Add Elm support HOT 1
- [feature] ignore empty rules in rules.yaml - allow trailing rule separator HOT 1
- Can input be avoided with "--update-all"?
- [feature] rename all symbols between camelCase and snake_case HOT 4
- [bug] C++ matching doesn't work on function declaration body HOT 4
- [bug] Metavariables in C++ seem to depend on length HOT 2
- [bug] Rule file without 'message' property breaks LSP HOT 1
- Finding arbitrary HTML nodes that have specific attributes with specific value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ast-grep.