FFFF Command name alias: ast-grep and sg · Issue #56 · ast-grep/ast-grep · GitHub
[go: up one dir, main page]

Skip to content

Command name alias: ast-grep and sg #56

@bodograumann

Description

@bodograumann

Need Your Voice! Please Reaction and Leave Comment

More Linux users have feedbacks that ast-grep should drop the sg command. To understand the issue better, ast-grep welcomes Linux users' voice!

Please share your experience to us. A recommended outline:

  • What device are you installing ast-grep?: Personal device, Server, User's computer as a dependency
  • How are you using sg the shadow-utils?
  • How sg the ast-grep command impact you?: Break your workflow/server script? ast-grep is overridden by shadow-utils? Or because it is a bad practice?

If we have > 10 user share their stories or > 20 upvote reactions, ast-grep will consider the deprecation process.


Orignal Issue

The cli command name sg is already taken by a shadow tools command

NAME
sg - execute command as different group ID

Cf. https://github.com/shadow-maint/shadow

It is installed by default in /usr/bin/sg at least on arch-linux.

Weirdly npm install -g @ast-grep/cli didn’t even install the cli in ~/.local/bin for me (I have prefix=~/.local configured for npm). Maybe that is also due to the name collision.

I actually like the pattern of .g for grep commands. Pitty that ag is already taken.
How about cg for code-grep?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0