Borg/cmd/run.go
google-labs-jules[bot] 38fafbf639 feat: Add comprehensive docstrings and refactor matrix to tim
Add comprehensive Go docstrings with examples to all packages to achieve 100% coverage.

Refactor the `matrix` package to `tim` (Terminal Isolation Matrix). Update all references to the old package and terminology across the codebase, including commands, tests, and examples.

Fix inconsistencies in command-line flags and help text related to the refactoring.
2025-11-14 21:23:11 +00:00

27 lines
443 B
Go

package cmd
import (
"github.com/Snider/Borg/pkg/tim"
"github.com/spf13/cobra"
)
var runCmd = NewRunCmd()
func NewRunCmd() *cobra.Command {
return &cobra.Command{
Use: "run [tim file]",
Short: "Run a TIM.",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return tim.Run(args[0])
},
}
}
func GetRunCmd() *cobra.Command {
return runCmd
}
func init() {
RootCmd.AddCommand(GetRunCmd())
}