Skip to content

Commit

Permalink
moved
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 18, 2017
1 parent 4c83254 commit 0569e75
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vendor
am-i-working
./am-i-working
coverage.out
dist
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions cmd/am-i-working/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package main

import (
"log"
"os"

"github.com/caarlos0/am-i-working/cmd/am-i-working/commands"
"github.com/urfave/cli"
)

var version = "master"

func main() {
app := cli.NewApp()
app.Name = "am-i-working"
app.Usage = "Logs your working activity based on /etc/resolv.conf domain"
app.Version = version
app.Author = "Carlos Alexandro Becker <@caarlos0>"
app.Copyright = "MIT"
app.Commands = []cli.Command{
commands.Watch,
commands.CreateService,
commands.RestartService,
commands.StartService,
commands.StopService,
commands.DeleteService,
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}

0 comments on commit 0569e75

Please sign in to comment.