You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/08/20 14:41:35 UTC
[skywalking-cli] branch master updated: Cancel the color text
effect of swctl in windows (#111)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 58f720e Cancel the color text effect of swctl in windows (#111)
58f720e is described below
commit 58f720eb9db44156784c84075706592a98230f6e
Author: Team317 <52...@users.noreply.github.com>
AuthorDate: Fri Aug 20 22:41:31 2021 +0800
Cancel the color text effect of swctl in windows (#111)
---
cmd/swctl/main.go | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/cmd/swctl/main.go b/cmd/swctl/main.go
index 2ca1733..dd4b677 100644
--- a/cmd/swctl/main.go
+++ b/cmd/swctl/main.go
@@ -20,6 +20,7 @@ package main
import (
"io/ioutil"
"os"
+ "runtime"
"github.com/apache/skywalking-cli/internal/commands/completion"
"github.com/apache/skywalking-cli/internal/commands/dashboard"
@@ -51,9 +52,11 @@ func init() {
}
func main() {
- cli.AppHelpTemplate = util.AppHelpTemplate
- cli.CommandHelpTemplate = util.CommandHelpTemplate
- cli.SubcommandHelpTemplate = util.SubcommandHelpTemplate
+ if runtime.GOOS != "windows" {
+ cli.AppHelpTemplate = util.AppHelpTemplate
+ cli.CommandHelpTemplate = util.CommandHelpTemplate
+ cli.SubcommandHelpTemplate = util.SubcommandHelpTemplate
+ }
app := cli.NewApp()
app.Usage = "The CLI (Command Line Interface) for Apache SkyWalking."