feat: skeleton install, update command

main
Tran Hau 2021-01-12 10:17:27 +07:00
parent 0e045b36fe
commit c78cd130c2
1 changed files with 17 additions and 0 deletions

17
main.go
View File

@ -10,12 +10,29 @@ import (
const (
appName = "dotfiles"
pathFlag = "path"
installCommand = "install"
updateCommand = "update"
)
func main() {
app := &cli.App{
Name: appName,
Usage: "managing dotfiles",
Commands: []*cli.Command{
{
Name: installCommand,
Aliases: []string{"i"},
Usage: "install configs from dotfiles",
},
{
Name: updateCommand,
Aliases: []string{"u"},
Usage: "update dotfiles from configs",
},
},
}
if err := app.Run(os.Args); err != nil {