Browse Source

update comments

main
David Haukeness 2 years ago
parent
commit
7f59fda8b7
  1. 7
      keybase.go

7
keybase.go

@ -23,10 +23,7 @@ type Options struct { @@ -23,10 +23,7 @@ type Options struct {
ChannelBufferSize int
}
// locateKeybase attempts to find the location of the keybase binary in the following order:
// 1. What the user has specified as the location [user specified]
// 2. Looks up the binary location using exec.LookPath [default]
// 3. Returns "keybase" and hopes its pathed on the users system [fallback]
// locateKeybase attempts to find the location of the keybase binary using the system PATH
func locateKeybase() (string, error) {
path, err := exec.LookPath("keybase")
if err != nil {
@ -35,7 +32,7 @@ func locateKeybase() (string, error) { @@ -35,7 +32,7 @@ func locateKeybase() (string, error) {
return path, nil
}
// buildBaseCommand adds the homedirectory before the args, when required
// buildArgs adds the homedirectory before the args, when required
func buildArgs(opts Options, args ...string) ([]string, error) {
if len(args) == 0 {
return nil, fmt.Errorf("no arguments")

Loading…
Cancel
Save