Skip to content

Commit

Permalink
by default run start command
Browse files Browse the repository at this point in the history
  • Loading branch information
michalfranc-form3 committed Apr 5, 2021
1 parent 6ac4c95 commit 82af8f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/rgt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ package main

import (
"github.com/michal-franc/rgt/internal/app/rgt/commands"
"os"
)

const DefaultCommand = "start"

func main() {
// if no command specified add in default command
if len(os.Args) <= 1 {
os.Args = append(os.Args, DefaultCommand)
}
commands.Execute()
}

0 comments on commit 82af8f4

Please sign in to comment.