summaryrefslogtreecommitdiff
path: root/notsure.go
blob: ee73baa16fee2189de01c51269ff04048b45751e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package argvpb

import "go.wit.com/log"

// these are things I'm not sure about doing
// or haven't figured out what to do with
// or are generally part of idiocracy

// this is sill in development
// figure out how to trigger this
var ArgvBash ArgsBash

type ArgsBash struct {
	Bash bool `arg:"--bash"                               help:"generate bash completion"`
}

// returns the name of the executable registered for shell autocomplete
func AppName() string {
	return me.ARGNAME
}

// maybe this is a good idea, maybe not
func (pb *Argv) Verbose() bool {
	return true
}

// maybe this is a good idea, maybe not
func (pb *Argv) Gui() bool {
	log.Printf("CUR pb: %v\n", pb)
	log.Info("CUR ARGV:", pb.Real)
	if pb.Cmd == "gui" {
		return true
	}
	return false
}

func (pb *Argv) Dump() {
	log.Printf("CUR pb: %v\n", pb)
}