Skip to content

Commit

Permalink
Modify how cli interact
Browse files Browse the repository at this point in the history
  • Loading branch information
ardikabs committed Aug 26, 2020
1 parent 67a7a5b commit d4826e8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions app/cli/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
package main

import "awssh/internal/cli"
import (
"awssh/config"
"awssh/internal/cli"
"os"
)

func main() {
cli.Execute()

config.Load()

rootCommand := cli.MakeRoot()

rootCommand.AddCommand(cli.MakeVersion())

if err := rootCommand.Execute(); err != nil {
os.Exit(1)
}
}

// TODO: unittest

0 comments on commit d4826e8

Please sign in to comment.