diff --git a/go.mod b/go.mod index 3a27be9..6526ecd 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/fopost/fopost-cli go 1.22 require ( - github.com/fopost/fopost-go v0.2.1-0.20260920130053-a8ac95df638d + github.com/fopost/fopost-go v0.2.1-0.20260920141700-633d72b705ca github.com/spf13/cobra v1.10.2 golang.org/x/term v0.27.0 ) diff --git a/go.sum b/go.sum index 71db396..7d15718 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/fopost/fopost-go v0.2.1-0.20260920130053-a8ac95df638d h1:XSxGXq2PUdF+agsbdzvUbL+NQQ8qC/lvUec0PX6pHrA= github.com/fopost/fopost-go v0.2.1-0.20260920130053-a8ac95df638d/go.mod h1:Qz+7UCYTBnDEeZqB3VMrePxmYLVR9rFvx3+QWcKND8Q= +github.com/fopost/fopost-go v0.2.1-0.20260920141700-633d72b705ca h1:1a7XwNMmGCUh22hW6FOs8R5F5xJVTsbgCoJK+VdgEMc= +github.com/fopost/fopost-go v0.2.1-0.20260920141700-633d72b705ca/go.mod h1:Qz+7UCYTBnDEeZqB3VMrePxmYLVR9rFvx3+QWcKND8Q= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= diff --git a/internal/cmd/accounts_discord.go b/internal/cmd/accounts_discord.go index 2d840da..ba39934 100644 --- a/internal/cmd/accounts_discord.go +++ b/internal/cmd/accounts_discord.go @@ -51,9 +51,9 @@ func newDiscordChannelsCmd(state *State) *cobra.Command { return printer.Value(channels, func() { rows := make([][]string, 0, len(channels)) for _, c := range channels { - rows = append(rows, []string{c.ID, "#" + c.Name, strconv.Itoa(c.Type), boolLabel(c.IsCurrent, "yes", "no")}) + rows = append(rows, []string{c.ID, "#" + c.Name, strconv.Itoa(c.Type), boolLabel(c.CanPost, "yes", "no"), boolLabel(c.IsCurrent, "yes", "no")}) } - printer.Table([]string{"id", "name", "type", "current"}, rows) + printer.Table([]string{"id", "name", "type", "can post", "current"}, rows) }) }, }