Files
plainleaf/cmd/cli/main.go
T
Zef Hemel b5bdab5d1a CLI work
* Replaced initial node.js prototype of CLI with proper Go
  implementation
* Added code signing for CLI + server binaries for macOS
2026-03-29 16:48:39 +02:00

33 lines
547 B
Go

package main
import (
"github.com/silverbulletmd/silverbullet/cli"
"github.com/spf13/cobra"
)
// Set via -ldflags "-X main.version=..."
var version string
func main() {
root := &cobra.Command{
Use: "silverbullet-cli",
Short: "SilverBullet CLI",
}
cli.AddSpaceFlags(root)
root.AddCommand(
cli.SpaceCommand(),
cli.LuaCommand(),
cli.LuaScriptCommand(),
cli.LogsCommand(),
cli.ScreenshotCommand(),
cli.ReplCommand(),
cli.VersionCommand(version),
cli.UpgradeCommand(),
cli.UpgradeEdgeCommand(),
)
root.Execute()
}