mirror of
https://github.com/dnote/dnote
synced 2026-03-16 23:45:52 +01:00
* 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
22 lines
428 B
Go
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
|
|
}
|