예제 #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()
}