14 cl = flag.Bool("c", false, `Clear the tag`)
15 gt = flag.Bool("g", false, `Get the content of the tag`)
18 func open() (*acme.Win, error) {
19 winid := os.Getenv("winid")
20 id, err := strconv.Atoi(winid)
24 win, err := acme.Open(id, nil)
30 fmt.Println(me, "- manage acme(1) tag")
31 fmt.Println("Usage:", me, " [-ch] entries...")
32 fmt.Println(" where entries are words to be added to acme' tag bar")
45 defer win.CloseFiles()
48 tag, err := win.ReadAll("tag")
52 fmt.Println(string(tag))
60 for _, arg := range flag.Args() {
61 _, err = win.Write("tag", []byte(sep+arg))