From 7f59fda8b76856b7def98d537d1e6621ca781302 Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Fri, 11 Mar 2022 16:04:30 -0700 Subject: [PATCH] update comments --- keybase.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/keybase.go b/keybase.go index 345cdee..aa381f8 100644 --- a/keybase.go +++ b/keybase.go @@ -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) { 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")