Skip to content

Commit 0fc10b8

Browse files
committed
style: format all Go source files with gofmt
1 parent 73945f1 commit 0fc10b8

15 files changed

Lines changed: 43 additions & 44 deletions

cmd/gitant/advanced.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
)
1010

1111
var extensionCmd = &cobra.Command{
12-
Use: "extension",
13-
Short: "Manage CLI extensions (from GitHub)",
12+
Use: "extension",
13+
Short: "Manage CLI extensions (from GitHub)",
1414
Aliases: []string{"ext"},
1515
}
1616

@@ -73,8 +73,8 @@ var extensionUninstallCmd = &cobra.Command{
7373
}
7474

7575
var kanbanCmd = &cobra.Command{
76-
Use: "kanban-legacy",
77-
Short: "Manage Kanban boards (alias of 'project', backed by /projects)",
76+
Use: "kanban-legacy",
77+
Short: "Manage Kanban boards (alias of 'project', backed by /projects)",
7878
Aliases: []string{"kb"},
7979
}
8080

cmd/gitant/agents.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ var agentListCmd = &cobra.Command{
2323
client := cli.NewClient(daemonURL)
2424
var result struct {
2525
Agents []struct {
26-
DID string `json:"did"`
27-
TrustScore float64 `json:"trust_score"`
28-
RepoCount int `json:"repos"`
29-
CommitCount int `json:"commits"`
26+
DID string `json:"did"`
27+
TrustScore float64 `json:"trust_score"`
28+
RepoCount int `json:"repos"`
29+
CommitCount int `json:"commits"`
3030
} `json:"agents"`
3131
Total int `json:"total"`
3232
}

cmd/gitant/commands_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,4 +709,3 @@ func TestUCANListRevocationsEmpty(t *testing.T) {
709709
t.Errorf("expected 'No revoked UCANs', got: %s", out)
710710
}
711711
}
712-

cmd/gitant/community.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ var chatReadCmd = &cobra.Command{
149149
}
150150

151151
var workspaceCmd = &cobra.Command{
152-
Use: "workspace",
153-
Short: "Manage workspaces (from OneDev)",
152+
Use: "workspace",
153+
Short: "Manage workspaces (from OneDev)",
154154
Aliases: []string{"ws"},
155155
}
156156

@@ -210,8 +210,8 @@ var workspaceCreateCmd = &cobra.Command{
210210
}
211211

212212
var serviceDeskCmd = &cobra.Command{
213-
Use: "service-desk",
214-
Short: "Manage service desk tickets (from OneDev)",
213+
Use: "service-desk",
214+
Short: "Manage service desk tickets (from OneDev)",
215215
Aliases: []string{"sd", "ticket"},
216216
}
217217

@@ -319,8 +319,8 @@ var timeSummaryCmd = &cobra.Command{
319319
}
320320

321321
var governanceCmd = &cobra.Command{
322-
Use: "governance",
323-
Short: "Manage governance proposals (from Gitopia)",
322+
Use: "governance",
323+
Short: "Manage governance proposals (from Gitopia)",
324324
Aliases: []string{"gov", "proposal"},
325325
}
326326

cmd/gitant/deployments.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
)
1010

1111
var deploymentCmd = &cobra.Command{
12-
Use: "deployment",
13-
Short: "Manage deployments",
12+
Use: "deployment",
13+
Short: "Manage deployments",
1414
Aliases: []string{"deploy"},
1515
}
1616

cmd/gitant/environments.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
)
1010

1111
var environmentCmd = &cobra.Command{
12-
Use: "environment",
13-
Short: "Manage environments",
12+
Use: "environment",
13+
Short: "Manage environments",
1414
Aliases: []string{"env"},
1515
}
1616

cmd/gitant/git_commands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,10 @@ var gitDiffCmd = &cobra.Command{
488488

489489
var result struct {
490490
Files []struct {
491-
Path string `json:"path"`
492-
Status string `json:"status"`
493-
Additions int `json:"additions"`
494-
Deletions int `json:"deletions"`
491+
Path string `json:"path"`
492+
Status string `json:"status"`
493+
Additions int `json:"additions"`
494+
Deletions int `json:"deletions"`
495495
} `json:"files"`
496496
}
497497
if err := client.Get(path, &result); err != nil {

cmd/gitant/gitlawb_commands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ var ipfsListCmd = &cobra.Command{
8484
client := cli.NewClient(daemonURL)
8585
var result struct {
8686
Pins []struct {
87-
CID string `json:"cid"`
88-
Type string `json:"type"`
89-
Size int64 `json:"size"`
90-
PinnedAt string `json:"pinned_at"`
87+
CID string `json:"cid"`
88+
Type string `json:"type"`
89+
Size int64 `json:"size"`
90+
PinnedAt string `json:"pinned_at"`
9191
} `json:"pins"`
9292
Total int `json:"total"`
9393
}

cmd/gitant/gitlawb_parity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ var peerListCmd = &cobra.Command{
185185
client := cli.NewClient(daemonURL)
186186
var result struct {
187187
Peers []struct {
188-
ID string `json:"id"`
188+
ID string `json:"id"`
189189
Multiaddrs []string `json:"multiaddrs"`
190-
Connected bool `json:"connected"`
190+
Connected bool `json:"connected"`
191191
} `json:"peers"`
192192
Total int `json:"total"`
193193
}

cmd/gitant/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414
)
1515

1616
var rootCmd = &cobra.Command{
17-
Use: "gt",
18-
Short: "Gitant CLI for developers and agents",
19-
Long: "Client for Gitant nodes — push, pull, issues, PRs, and more. Pair with gitant-daemon (self-host) or a hosted Gitant URL.",
17+
Use: "gt",
18+
Short: "Gitant CLI for developers and agents",
19+
Long: "Client for Gitant nodes — push, pull, issues, PRs, and more. Pair with gitant-daemon (self-host) or a hosted Gitant URL.",
2020
Aliases: []string{"gitant"},
2121
}
2222

0 commit comments

Comments
 (0)