示例#1
0
func main() {
	app := cli.NewApp()

	app.Name = "sudolikeaboss"
	app.Version = "0.2.1"
	app.Usage = "use 1password from the terminal with ease"
	app.Action = func(c *cli.Context) {
		go runSudolikeaboss()
		C.StartApp()
	}

	app.Run(os.Args)
}
示例#2
0
func StartAppUi(url string) {
	strUrl := C.CString(url)
	C.StartApp(strUrl)
}
示例#3
0
func osInit() {
	runtime.LockOSThread()
	C.StartApp()
}