Commenting out whois+sed, will be re-added later

This commit is contained in:
Yoann La Cancellera
2023-11-07 17:39:58 +01:00
parent 230bece1e1
commit 602ca34006
3 changed files with 8 additions and 26 deletions

View File

@@ -37,8 +37,8 @@ var CLI struct {
MergeByDirectory bool `help:"Instead of relying on identification, merge contexts and columns by base directory. Very useful when dealing with many small logs organized per directories."`
List list `cmd:""`
Whois whois `cmd:""`
Sed sed `cmd:""`
//Whois whois `cmd:""`
// Sed sed `cmd:""`
Ctx ctx `cmd:""`
RegexList regexList `cmd:""`
Conflicts conflicts `cmd:""`

View File

@@ -1,16 +1,6 @@
package main
import (
"fmt"
"os"
"os/exec"
"strings"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/regex"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/types"
"github.com/pkg/errors"
)
/*
type sed struct {
Paths []string `arg:"" name:"paths" help:"paths of the log to use"`
ByIP bool `help:"Replace by IP instead of name"`
@@ -109,3 +99,4 @@ func sedSliceWith(elems []string, replace string) []string {
}
return args
}
*/

View File

@@ -1,14 +1,6 @@
package main
import (
"encoding/json"
"fmt"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/regex"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/types"
"github.com/pkg/errors"
)
/*
type whois struct {
Search string `arg:"" name:"search" help:"the identifier (node name, ip, uuid, hash) to search"`
Paths []string `arg:"" name:"paths" help:"paths of the log to use"`
@@ -40,7 +32,6 @@ func (w *whois) Run() error {
}
func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo {
/*
ni := types.NodeInfo{Input: search}
if regex.IsNodeUUID(search) {
search = utils.UUIDToShortUUID(search)
@@ -98,6 +89,6 @@ func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo {
ni.NodeUUIDs = hashes
ni.IPs = ips
return ni
*/
return types.NodeInfo{}
}
*/