diff options
| author | Anis Elleuch <[email protected]> | 2019-06-28 13:39:45 +0100 |
|---|---|---|
| committer | Anis Elleuch <[email protected]> | 2019-06-28 13:45:36 +0100 |
| commit | c6bcb58fc4de17d39c7b428b34659c12600263f9 (patch) | |
| tree | 028139ccfc5b79af1bc360c6743c79162ec474a5 /cmd/install/install.go | |
| parent | 60e9d0a237999e714fb4d04727fe7ffa1b377c6e (diff) | |
Add IsInstalled API to installer interface
`IsInstalled(cmd, bin string) bool` will help tools using this library
to show a prompt to users asking if they would like to have completion
enabled.
Diffstat (limited to 'cmd/install/install.go')
| -rw-r--r-- | cmd/install/install.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/install/install.go b/cmd/install/install.go index 3cb9746..a9a01d4 100644 --- a/cmd/install/install.go +++ b/cmd/install/install.go @@ -11,6 +11,7 @@ import ( ) type installer interface { + IsInstalled(cmd, bin string) bool Install(cmd, bin string) error Uninstall(cmd, bin string) error } |
