Implemented deleteAllProfiles

pull/4780/head
Marek Schwarz 2019-07-16 22:08:47 +02:00
parent f0e707c49d
commit d0e749b3a0
1 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,6 @@ limitations under the License.
package cmd
import (
"fmt"
"os"
"github.com/docker/machine/libmachine"
@ -116,7 +115,9 @@ func deleteProfile(profileName string) {
func deleteAllProfiles(profiles []string) {
for _, profile := range profiles {
fmt.Println(profile)
// TODO: Refactor: viper.Set seems to be in the wrong place
viper.Set(pkg_config.MachineProfile, profile)
deleteProfile(profile)
}
os.Exit(0)
}