Skip to content

Commit

Permalink
Add reconfiguring style
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Mar 1, 2019
1 parent c40602b commit 2f1f52e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (k *KubeadmBootstrapper) RestartCluster(k8s config.KubernetesConfig) error
return errors.Wrap(err, "wait")
}

console.OutStyle("waiting", "Updating kube-proxy configmap ...")
console.OutStyle("reconfiguring", "Reconfiguring kube-proxy ...")
if err := restartKubeProxy(k8s); err != nil {
return errors.Wrap(err, "restarting kube-proxy")
}
Expand Down
49 changes: 25 additions & 24 deletions pkg/minikube/console/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,31 @@ type style struct {
// styles is a map of style name to style struct
// For consistency, ensure that emojis added render with the same width across platforms.
var styles = map[string]style{
"happy": {Prefix: "πŸ˜„ ", LowPrefix: "o "},
"success": {Prefix: "βœ… "},
"failure": {Prefix: "❌ ", LowPrefix: "X "},
"conflict": {Prefix: "πŸ’₯ ", LowPrefix: "x "},
"fatal": {Prefix: "πŸ’£ ", LowPrefix: "! "},
"notice": {Prefix: "πŸ“Œ ", LowPrefix: "* "},
"ready": {Prefix: "πŸ„ ", LowPrefix: "= "},
"running": {Prefix: "πŸƒ ", LowPrefix: ": "},
"provisioning": {Prefix: "🌱 ", LowPrefix: "> "},
"restarting": {Prefix: "πŸ”„ ", LowPrefix: ": "},
"stopping": {Prefix: "βœ‹ ", LowPrefix: ": "},
"stopped": {Prefix: "πŸ›‘ "},
"warning": {Prefix: "⚠️ ", LowPrefix: "! "},
"waiting": {Prefix: "βŒ› ", LowPrefix: ": "},
"waiting-pods": {Prefix: "βŒ› ", LowPrefix: ": ", OmitNewline: true},
"usage": {Prefix: "πŸ’‘ "},
"launch": {Prefix: "πŸš€ "},
"sad": {Prefix: "😿 ", LowPrefix: "* "},
"thumbs-up": {Prefix: "πŸ‘ "},
"option": {Prefix: " β–ͺ "}, // Indented bullet
"command": {Prefix: " β–ͺ "}, // Indented bullet
"log-entry": {Prefix: " "}, // Indent
"crushed": {Prefix: "πŸ’” "},
"url": {Prefix: "πŸ‘‰ "},
"happy": {Prefix: "πŸ˜„ ", LowPrefix: "o "},
"success": {Prefix: "βœ… "},
"failure": {Prefix: "❌ ", LowPrefix: "X "},
"conflict": {Prefix: "πŸ’₯ ", LowPrefix: "x "},
"fatal": {Prefix: "πŸ’£ ", LowPrefix: "! "},
"notice": {Prefix: "πŸ“Œ ", LowPrefix: "* "},
"ready": {Prefix: "πŸ„ ", LowPrefix: "= "},
"running": {Prefix: "πŸƒ ", LowPrefix: ": "},
"provisioning": {Prefix: "🌱 ", LowPrefix: "> "},
"restarting": {Prefix: "πŸ”„ ", LowPrefix: ": "},
"reconfiguring": {Prefix: "πŸ“― ", LowPrefix: ": "},
"stopping": {Prefix: "βœ‹ ", LowPrefix: ": "},
"stopped": {Prefix: "πŸ›‘ "},
"warning": {Prefix: "⚠️ ", LowPrefix: "! "},
"waiting": {Prefix: "βŒ› ", LowPrefix: ": "},
"waiting-pods": {Prefix: "βŒ› ", LowPrefix: ": ", OmitNewline: true},
"usage": {Prefix: "πŸ’‘ "},
"launch": {Prefix: "πŸš€ "},
"sad": {Prefix: "😿 ", LowPrefix: "* "},
"thumbs-up": {Prefix: "πŸ‘ "},
"option": {Prefix: " β–ͺ "}, // Indented bullet
"command": {Prefix: " β–ͺ "}, // Indented bullet
"log-entry": {Prefix: " "}, // Indent
"crushed": {Prefix: "πŸ’” "},
"url": {Prefix: "πŸ‘‰ "},

// Specialized purpose styles
"iso-download": {Prefix: "πŸ’Ώ ", LowPrefix: "@ "},
Expand Down

0 comments on commit 2f1f52e

Please sign in to comment.