Skip to content

Commit

Permalink
Adding comments to code for ListKubectlBinaries
Browse files Browse the repository at this point in the history
  • Loading branch information
simplyzee committed Sep 11, 2019
1 parent 5a45059 commit 7e947a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ func ListKubectlBinaries() error {
log.Fatal(err)
}

// Read kubemngr directory
kubectl, err := ioutil.ReadDir(homeDir + "/.kubemngr/")
if err != nil {
log.Fatal(err)
}

// TODO sort and filter version for pretty print on version
// iterate and print files inside the kubemngr directory
for _, files := range kubectl {
file := files.Name()
// version := file[:strings.IndexByte(file, '-')]
Expand Down

0 comments on commit 7e947a0

Please sign in to comment.