Skip to content

Commit

Permalink
Merge pull request #2 from eddyv73/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
eddyv73 authored Jul 28, 2023
2 parents 1e5b8f2 + 6a705c8 commit 676aa89
Show file tree
Hide file tree
Showing 14 changed files with 1,032 additions and 65 deletions.
25 changes: 25 additions & 0 deletions KubeConfigList.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// KubeConfigList.swift
// kubec-cmd
//
// Created by Eddy Wister on 28/07/23.
//

import Foundation

func listfilesinpath () -> [String]
{
let fileManager = FileManager.default
let enumerator:FileManager.DirectoryEnumerator = fileManager.enumerator(atPath: kubeconfig.path.description)!
var ConfigFound = [String]()
for file in enumerator {
if let file = file as? String {
if file.contains(configsuffix) {
if !file.contains("bk") && !file.contains(".back") && file.contains(configsuffix) {
ConfigFound.append(file)
}
}
}
}
return ConfigFound
}
Loading

0 comments on commit 676aa89

Please sign in to comment.