Skip to content

Add options and shorts for each command #25

@MustafaAhmed313

Description

@MustafaAhmed313

Description :

Users of Switchy CLI need some familiar options and shortcuts for using the commands without having to write the full command name and the follwing list describes the needed shortcuts for each command :

  • add => a .
  • list => ls.
  • remove=> rm.
  • init => i.
  • redirect => go.
  • last => --lts.
  • search => f.
  • clear => --clr.

Examples :

# add command
switchy add <path>
switchy a <path>

# list command
switchy list
switchy ls

# remove command
switchy remove <repoName>
switchy rm <repoName>

# init command
switchy init
switchy i

# redirect command
switchy redirect <repoName>
switchy go <repoName>

# last command
switchy last 
switchy --lts

# search command
switchy find <repoName>
switchy f <repoName>

# reset command
switchy reset
switchy --clr 

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions