Documentation
¶
Overview ¶
Package cmd provides command-line interface commands for Schedularr.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "dev"
Version is the build version reported by GET /api/v1/status (gen.Status.Version, see internal/api/tunarr.go's GetStatus). It defaults to "dev" for a source build; a release build overrides it via `-ldflags "-X github.com/christopherime/schedularr/cmd.Version=..."`.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ProcessSchedule ¶
ProcessSchedule generates and optionally applies the schedule. Schedule generation, content fetching, and the apply-and-commit path all live in internal/service (service.Runner.Run) -- this function's job is CLI concerns only: opening/closing the store, the --yes gate, and rendering the result.
Types ¶
This section is empty.