@@ -5,9 +5,9 @@ import (
"time"
"github.com/aquasecurity/table"
- "github.com/enescakir/emoji"
"github.com/crowdsecurity/crowdsec/pkg/database/ent"
+ "github.com/crowdsecurity/crowdsec/pkg/emoji"
)
func getBouncersTable(out io.Writer, bouncers []*ent.Bouncer) {
@@ -4,9 +4,9 @@ import (
"io"
"github.com/crowdsecurity/crowdsec/pkg/csconfig"
func cmdConsoleStatusTable(out io.Writer, consoleCfg csconfig.ConsoleConfig) {
@@ -10,13 +10,13 @@ import (
"text/template"
"github.com/AlecAivazis/survey/v2"
"github.com/fatih/color"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
"github.com/crowdsecurity/crowdsec/pkg/dumps"
"github.com/crowdsecurity/crowdsec/pkg/hubtest"
@@ -5,8 +5,8 @@ import (
func getAgentsTable(out io.Writer, machines []*ent.Machine) {
@@ -6,7 +6,8 @@ import (
"strings"
+
func notificationListTable(out io.Writer, ncfgs map[string]NotificationsCfg) {
@@ -6,9 +6,9 @@ import (
"strconv"
"github.com/crowdsecurity/crowdsec/pkg/cwhub"
func listHubItemTable(out io.Writer, title string, items []*cwhub.Item) {
@@ -7,7 +7,8 @@ import (
"slices"
"github.com/Masterminds/semver/v3"
const (
@@ -13,7 +13,7 @@ import (
"os"
"path/filepath"
// Upgrade downloads and applies the last version of the item from the hub.
@@ -8,9 +8,9 @@ import (
"github.com/crowdsecurity/crowdsec/pkg/types"
"github.com/crowdsecurity/go-cs-lib/maptools"
diff "github.com/r3labs/diff/v2"
@@ -0,0 +1,20 @@
+package emoji
+import (
+ "github.com/enescakir/emoji"
+)
+type Emoji = emoji.Emoji
+var (
+ CheckMarkButton = emoji.CheckMarkButton
+ CheckMark = emoji.CheckMark
+ CrossMark = emoji.CrossMark
+ GreenCircle = emoji.GreenCircle
+ House = emoji.House
+ Package = emoji.Package
+ Prohibited = emoji.Prohibited
+ QuestionMark = emoji.QuestionMark
+ RedCircle = emoji.RedCircle
+ Warning = emoji.Warning