Commit graph

4 commits

Author SHA1 Message Date
Snider
21dc508e96 refactor(cli): replace cobra with core/go primitives
Some checks failed
Security Scan / security (push) Has been cancelled
- Remove github.com/spf13/cobra dependency entirely
- Command = core.Command (was cobra.Command)
- CommandRegistration func(c *core.Core) (was func(root *cobra.Command))
- Path-based routing: c.Command("config/list", ...) replaces root.AddCommand()
- Flags parsed automatically via core.Options (no StringVarP ceremony)
- Replace stdlib imports with core/go: errors, path/filepath fully removed
- fmt/strings reduced to only what core/go can't replace yet (Fprint, Builder)
- Shell completion deferred to core/go v0.9.0
- Net -344 lines (576 insertions, 920 deletions)
- Build, vet, and tests pass clean

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-08 11:11:25 +01:00
Snider
b541ce7657 fix: migrate module paths from forge.lthn.ai to dappco.re
- Update all Go source imports: forge.lthn.ai/core/* → dappco.re/go/core/*
- Update go.mod module declaration and require paths
- Regenerate go.sum (top-level pkg/cli module)
- cmd/core go.sum pending: dappco.re/go/core/devops needs republish
  without forge.lthn.ai/core/go-container source imports

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-07 12:05:47 +01:00
Claude
6b321fe5c9 refactor(ax): Pass 1 AX compliance sweep — banned imports, naming, tests
Some checks are pending
Security Scan / security (push) Waiting to run
- Remove banned imports (fmt, log, errors, os, strings, path/filepath,
  encoding/json) from all cmd/ packages; replace with core.* primitives
  and cli.* wrappers
- Rename abbreviated variables (cfg→configuration, reg→registry,
  cmd→proc, c→toolCheck/checkBuilder, sb→builder, out→output,
  r→repo/reason, b→branchName) across config, doctor, pkgcmd, help
- Add usage-example comments to all exported functions in pkg/cli
  (strings.go, log.go, i18n.go)
- Add complete Good/Bad/Ugly test triads to all pkg/cli test files:
  new files for command, errors, frame_components, i18n, log, render,
  runtime, strings, utils; updated existing check, daemon, glyph,
  layout, output, ansi, commands, frame, prompt, stream, styles,
  tracker, tree

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:28:36 +00:00
Snider
55b556d1af refactor: split library from binary, remove ecosystem commands
Some checks failed
Deploy / build (push) Failing after 3s
Security Scan / security (push) Successful in 13s
core/cli is now a pure library (pkg/cli). The binary moves to
cmd/core/ as a separate sub-module with its own go.mod.

Removed from binary: gocmd (→ lint/go-build), service (→ go-process),
session (→ go-session), module (→ go-scm), plugin (→ go-scm).
Removed from framework: go-crypt, workspace, daemon_cmd.

Root go.mod: 1 direct forge dep (core/go). Cross-compiles CGO_ENABLED=0.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 16:14:40 +00:00
Renamed from cmd/config/cmd_set.go (Browse further)