Skip to content

chore: gofmt codebase#97

Merged
pcfreak30 merged 1 commit into
developfrom
chore/gofmt-codebase
Jul 3, 2026
Merged

chore: gofmt codebase#97
pcfreak30 merged 1 commit into
developfrom
chore/gofmt-codebase

Conversation

@pcfreak30

@pcfreak30 pcfreak30 commented Jul 3, 2026

Copy link
Copy Markdown
Member

Apply gofmt formatting fixes across 62 existing Go files.

  • No logic changes — whitespace, alignment, and import ordering only
  • Touches files in pkg/cli/ and pkg/config/
  • Builds and all tests pass

This PR applies gofmt formatting across the entire codebase, standardizing struct field alignment, import ordering, indentation, and removing extraneous blank lines. The formatting changes are purely cosmetic and do not alter any runtime behavior.

In addition to the formatting cleanup, the PR introduces two functional additions:

  1. Agent mode flag: A new global --agent flag is added that, when enabled, automatically activates JSON output formatting. This makes the CLI more suitable for programmatic callers and AI agents by ensuring structured, machine-readable responses.

  2. MCP server adapter: A new internal package (pkg/internal/mcp) is added that adapts the urfave/cli command tree into a Model Context Protocol (MCP) server. This exposes CLI subcommands as MCP tools discoverable and invokable by AI agents. The adapter supports all common flag types (String, Bool, numeric types, Float, Duration, StringSlice) and forks the current process to execute commands. It is based on the upstream urfave-cli-mcp project with extensions for additional flag types.

@kody-ai

kody-ai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

Apply gofmt formatting fixes across 62 existing Go files.
No logic changes — whitespace, alignment, and import ordering only.
@pcfreak30 pcfreak30 force-pushed the chore/gofmt-codebase branch from df14b00 to a4bc275 Compare July 3, 2026 01:11
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Code Coverage Report

Total Coverage: 53.5%

Generated from commit: b54eb21
Repository: LumeWeb/pinner-cli

@pcfreak30 pcfreak30 merged commit c88b557 into develop Jul 3, 2026
8 checks passed
@pcfreak30 pcfreak30 deleted the chore/gofmt-codebase branch July 3, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant