Skip to content

Commit

Permalink
feat(mob): add subcommands aliases (withfig#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmuch authored May 8, 2022
1 parent 06b86dd commit eed383a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,15 @@
"contributions": [
"code"
]
},
{
"login": "thmuch",
"name": "Thomas Much",
"avatar_url": "https://avatars.githubusercontent.com/u/14270928?v=4",
"profile": "https://github.com/thmuch",
"contributions": [
"code"
]
}
]
}
10 changes: 5 additions & 5 deletions src/mob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const completionSpec: Fig.Spec = {
description: "Fast git handover for remote collaboration with mob.sh",
subcommands: [
{
name: "start",
name: ["start", "s"],
description: "Start session from base branch in wip branch",
options: [
{
Expand All @@ -25,7 +25,7 @@ const completionSpec: Fig.Spec = {
},
},
{
name: "next",
name: ["next", "n"],
description: "Handover changes in wip branch to next person",
options: [
{
Expand All @@ -46,7 +46,7 @@ const completionSpec: Fig.Spec = {
],
},
{
name: "done",
name: ["done", "d"],
description: "Squashes all changes in wip branch to index in base branch",
options: [
{
Expand Down Expand Up @@ -83,7 +83,7 @@ const completionSpec: Fig.Spec = {
description: "Removes all orphan wip branches",
},
{
name: "timer",
name: ["timer", "t"],
description: "Start a <minutes> timer",
args: {
name: "minutes",
Expand All @@ -105,7 +105,7 @@ const completionSpec: Fig.Spec = {
description: "Fetch remote state",
},
{
name: "branch",
name: ["branch", "b"],
description: "Show remote wip branches",
},
{
Expand Down

0 comments on commit eed383a

Please sign in to comment.