func init() { cmd = &cobra.Command{ Use: "vidar [files...]", Short: "An experimental Go editor", Long: "An editor for Go code, still in its infancy. Basic editing of Go code is mostly complete, but there's still a high potential for data loss.", Run: func(cmd *cobra.Command, args []string) { files = args gl.StartDriver(uiMain) }, } }
func init() { cmd = &cobra.Command{ Use: "vidar [files...]", Short: "An experimental Go editor", Long: "An editor for Go code, still in its infancy. " + "Basic editing of Go code is mostly complete, but " + "panics still happen and can result in the loss of " + "unsaved work.", Run: func(cmd *cobra.Command, args []string) { files = args gl.StartDriver(uiMain) }, } }
func main() { gl.StartDriver(appMain) }
func main() { flag.Parse() gl.StartDriver(appMain) }