Documentation
¶
Overview ¶
Package cmd implements the bucky CLI subcommands (install, system, model, whisper, info) wired into urfave/cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InstallCmd = &cli.Command{ Name: "install", Usage: "Install whisper.cpp libraries used by bucky", Flags: []cli.Flag{ &cli.StringFlag{ Name: "version", Aliases: []string{"v"}, Usage: "version of whisper.cpp to install (e.g. v1.8.4; default is the bucky-pinned version, pass \"latest\" to query the GitHub releases API)", Value: "", }, &cli.StringFlag{ Name: "lib", Aliases: []string{"l"}, Usage: "path to whisper.cpp compiled library files", EnvVars: []string{"BUCKY_LIB"}, }, &cli.StringFlag{ Name: "processor", Aliases: []string{"p"}, Usage: "processor to use (cpu, cuda, metal, vulkan)", Value: "", }, &cli.StringFlag{ Name: "os", Usage: "operating system to use (linux, windows, darwin)", Value: runtime.GOOS, }, &cli.BoolFlag{ Name: "upgrade", Aliases: []string{"u"}, Usage: "upgrade existing installation", Value: false, }, &cli.BoolFlag{ Name: "quiet", Aliases: []string{"q"}, Usage: "suppress output during installation", Value: false, }, }, Action: func(c *cli.Context) error { return runInstall(c) }, }
InstallCmd installs whisper.cpp shared libraries into a local directory.
View Source
var ModelCmd = &cli.Command{ Name: "model", Usage: "Manage whisper models", Subcommands: []*cli.Command{ modelGetCmd, modelInfoCmd, modelListCmd, }, }
ModelCmd manages whisper model files (download / inspect).
View Source
var SystemCmd = &cli.Command{ Name: "system", Usage: "Show whisper.cpp / system information", Flags: []cli.Flag{ &cli.StringFlag{ Name: "lib", Aliases: []string{"l"}, Usage: "path to whisper.cpp compiled library files", EnvVars: []string{"BUCKY_LIB"}, }, }, Action: func(c *cli.Context) error { return runSystemInfo(c) }, }
SystemCmd shows information about the host environment and the loaded whisper.cpp library.
View Source
var WhisperCmd = &cli.Command{ Name: "whisper", Usage: "Run whisper.cpp commands (transcribe, translate, segments)", Subcommands: []*cli.Command{ whisperTranscribeCmd, }, }
WhisperCmd groups whisper subcommands under "bucky whisper".
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.