Skip to content

Commit

Permalink
feat: left, center, rightコマンドにエイリアスを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Nov 12, 2020
1 parent 3a228e6 commit 35ad179
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions cmd_center.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ func init() {
}

var centerCommand = &cobra.Command{
Use: "center",
Short: "Align center command from file or stdin",
Use: "center",
Aliases: []string{"c"},
Short: "Align center command from file or stdin",
Run: func(cmd *cobra.Command, args []string) {
f := cmd.Flags()

Expand Down
5 changes: 3 additions & 2 deletions cmd_left.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ func init() {
}

var leftCommand = &cobra.Command{
Use: "left",
Short: "Align left command from file or stdin",
Use: "left",
Aliases: []string{"l"},
Short: "Align left command from file or stdin",
Run: func(cmd *cobra.Command, args []string) {
f := cmd.Flags()

Expand Down
5 changes: 3 additions & 2 deletions cmd_right.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ func init() {
}

var rightCommand = &cobra.Command{
Use: "right",
Short: "Align right command from file or stdin",
Use: "right",
Aliases: []string{"r"},
Short: "Align right command from file or stdin",
Run: func(cmd *cobra.Command, args []string) {
f := cmd.Flags()

Expand Down

0 comments on commit 35ad179

Please sign in to comment.