dnote/cmd/version/version.go
Sung Won Cho 19d383ac90
Sync across multiple machine (#51)
* Write migrations

* Use custom context

* Write test and run CI

* Save actions

* Implement reducer

* Supply api endpoint during build

* Remove uuid for book and use name instead

* Make bookmark id not timestamp

* Use book_name

* Fix migration to get sync to work
2018-01-06 17:53:07 +11:00

22 lines
428 B
Go

package version
import (
"fmt"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/spf13/cobra"
)
func NewCmd(ctx infra.DnoteCtx) *cobra.Command {
cmd := &cobra.Command{
Use: "version",
Short: "Print the version number of Dnote",
Long: "Print the version number of Dnote",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("dnote v%s\n", core.Version)
},
}
return cmd
}