diff --git a/README.md b/README.md index f40a630..d4ff77d 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,15 @@ defines the shared visibility policy. | Module | Package | Provides | | --- | --- | --- | -| `gitea.maximumdirect.net/eric/CommandKit` | `commandkit` | Typed commands, bindings, execution reporting and outcomes, help, and version. | +| `go.maximumdirect.net/commandkit` | `commandkit` | Typed commands, bindings, execution reporting and outcomes, help, and version. | | `gitea.maximumdirect.net/eric/CommandKit/integrations/ckconfig` | `ckconfig` | ConfigKit-backed `config` scopes, including configuration source evidence. | | `gitea.maximumdirect.net/eric/CommandKit/integrations/ckprompt` | `ckprompt` | PromptKit engine configuration/comparison, five catalogs, named inspection, requirements discovery, concrete request validation, and native smoke tests. | -Importing an integration does not install commands. Pass its declaration to -`commandkit.New` or `App.Register` to install it. The integrations depend on the -core and their selected upstream libraries; the core does not depend on either -integration. +Importing an integration does not install commands. The integrations currently +use the old core module identity and cannot be composed with the new core path. +The planned matched releases are `go.maximumdirect.net/ckconfig v0.2.0` and +`go.maximumdirect.net/ckprompt v0.2.0`, using core v0.3.0. See the +[consumer guide](docs/consumers/guide.md#module-selection) for migration details. ## Examples diff --git a/app.go b/app.go index 7062423..595260c 100644 --- a/app.go +++ b/app.go @@ -3,8 +3,8 @@ package commandkit import ( "fmt" - "gitea.maximumdirect.net/eric/CommandKit/internal/alias" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/alias" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) // App owns one command registry and its application identity. Each App has an diff --git a/binding.go b/binding.go index 60c69eb..21b0a29 100644 --- a/binding.go +++ b/binding.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) // ValueFlag declares a singleton flag with a typed parser, optional default, diff --git a/builtins.go b/builtins.go index 6aed4d0..ffc62cb 100644 --- a/builtins.go +++ b/builtins.go @@ -5,12 +5,12 @@ import ( "io" "runtime/debug" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" yaml "go.yaml.in/yaml/v4" ) -const commandKitModulePath = "gitea.maximumdirect.net/eric/CommandKit" +const commandKitModulePath = "go.maximumdirect.net/commandkit" type helpInput struct { Targets Supplied[[]string] diff --git a/builtins_test.go b/builtins_test.go index 9e859f8..19b075a 100644 --- a/builtins_test.go +++ b/builtins_test.go @@ -13,7 +13,7 @@ func TestCommandKitBuildIdentityProjectsEffectiveModuleVersion(t *testing.T) { }{ { name: "main module tag", - info: &debug.BuildInfo{Main: debug.Module{Path: commandKitModulePath, Version: "v1.2.3"}}, + info: &debug.BuildInfo{Main: debug.Module{Path: "go.maximumdirect.net/commandkit", Version: "v1.2.3"}}, want: "v1.2.3", }, { diff --git a/command.go b/command.go index 5cdd0bc..1f34aa1 100644 --- a/command.go +++ b/command.go @@ -6,8 +6,8 @@ import ( "strings" "unicode" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) // Command is an opaque, reusable declaration of canonical commands and groups. diff --git a/completion.go b/completion.go index ecc56f0..73b15ce 100644 --- a/completion.go +++ b/completion.go @@ -6,8 +6,8 @@ import ( "strings" "unicode" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) // Completion declares opt-in shell script generation for the executable diff --git a/completion_context.go b/completion_context.go index f1fa314..2ec7ff8 100644 --- a/completion_context.go +++ b/completion_context.go @@ -3,9 +3,9 @@ package commandkit import ( "strings" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) type completionContext struct { diff --git a/completion_context_test.go b/completion_context_test.go index 576647e..451a3ca 100644 --- a/completion_context_test.go +++ b/completion_context_test.go @@ -6,7 +6,7 @@ import ( "slices" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func TestCompletionCommandContext(t *testing.T) { diff --git a/completion_flags.go b/completion_flags.go index 1988e17..afd6be8 100644 --- a/completion_flags.go +++ b/completion_flags.go @@ -3,7 +3,7 @@ package commandkit import ( "strings" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) type completionTargetKind uint8 diff --git a/completion_flags_test.go b/completion_flags_test.go index 42f941f..da5045f 100644 --- a/completion_flags_test.go +++ b/completion_flags_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func TestCompletionFlagAndValuePositions(t *testing.T) { diff --git a/completion_query.go b/completion_query.go index 9dc8843..51e4278 100644 --- a/completion_query.go +++ b/completion_query.go @@ -5,8 +5,8 @@ import ( "io" "strings" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func completeRequest(snapshot *routingSnapshot, words []string) (commandmeta.CompletionResult, error) { diff --git a/completion_query_test.go b/completion_query_test.go index 42026bd..03f39ba 100644 --- a/completion_query_test.go +++ b/completion_query_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func TestCompletionQueryDispatch(t *testing.T) { diff --git a/completion_test.go b/completion_test.go index da57e83..4aaafc7 100644 --- a/completion_test.go +++ b/completion_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) // Existing consumer code can compare these metadata values or use them as keys. diff --git a/declaration_external_test.go b/declaration_external_test.go index f8c4c30..b21d524 100644 --- a/declaration_external_test.go +++ b/declaration_external_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - commandkit "gitea.maximumdirect.net/eric/CommandKit" + commandkit "go.maximumdirect.net/commandkit" ) func TestPublicInstallationAcceptsMixedDeclarations(t *testing.T) { diff --git a/docs/consumers/guide.md b/docs/consumers/guide.md index 8adcdc0..a27cf28 100644 --- a/docs/consumers/guide.md +++ b/docs/consumers/guide.md @@ -2,7 +2,7 @@ CommandKit is distributed as three Go modules. Start with the core and add an integration module only when the application uses that library. Core and -integration command factories return canonical `commandkit.Command` values. +compatible integration command factories return canonical `commandkit.Command` values. Applications may install those alongside application-owned `RoutingRule` declarations through `commandkit.New` or `App.Register`; routing rules are installed at the application root, not as group children. @@ -11,10 +11,18 @@ installed at the application root, not as group children. | Import | Use when | | --- | --- | -| `gitea.maximumdirect.net/eric/CommandKit` | The application needs typed command declarations and common CLI behavior. | +| `go.maximumdirect.net/commandkit` | The application needs typed command declarations and common CLI behavior. | | `gitea.maximumdirect.net/eric/CommandKit/integrations/ckconfig` | The application wants ConfigKit-backed configuration scopes and reports. | | `gitea.maximumdirect.net/eric/CommandKit/integrations/ckprompt` | The application wants PromptKit engine configuration/comparison, five catalogs, named inspection, requirements discovery, request validation, or native smoke testing. | +The integration paths in the table are their current source identities; they +use the old core path and do not compose with `go.maximumdirect.net/commandkit`. +For the new core v0.3.0 identity, the planned matched releases are +`go.maximumdirect.net/ckconfig v0.2.0` and `go.maximumdirect.net/ckprompt v0.2.0`. +Update application imports and dependency versions together when those releases +are available. Old and new core paths have distinct Go type identities. +Install the new core with `go get go.maximumdirect.net/commandkit@v0.3.0`. + The two integrations are independent optional imports. `ckprompt` uses the public scope and error contracts from `ckconfig`; importing it does not add the `config` family. An application that wants both families passes both returned @@ -44,7 +52,7 @@ import ( "fmt" "strconv" - commandkit "gitea.maximumdirect.net/eric/CommandKit" + commandkit "go.maximumdirect.net/commandkit" ) type GreetInput struct { diff --git a/docs/development.md b/docs/development.md index 3590c72..24d94e3 100644 --- a/docs/development.md +++ b/docs/development.md @@ -99,7 +99,10 @@ Sibling-checkout references in retired planning records are historical review evidence, not build dependencies. Implemented contracts belong in CommandKit under their canonical owners. -The root module does not traverse nested modules. During development, use a +The root module does not traverse nested modules. During the vanity-path +migration, integrations still import the old core identity and cannot compose +with the migrated root until their own module migrations are complete. After +the matched migrations, during development use a local workspace for all three modules; it is ignored and must not be committed. If a local `go.work` already exists, preserve it and add these module directories: diff --git a/docs/internal/overview.md b/docs/internal/overview.md index b7a951f..aff14b0 100644 --- a/docs/internal/overview.md +++ b/docs/internal/overview.md @@ -6,6 +6,10 @@ own the optional ConfigKit and PromptKit integrations. The [architecture policy](../policy/architecture.md) owns normative boundaries; this page inventories the implemented owners. +The core module now declares `go.maximumdirect.net/commandkit`. The integration +modules retain their old module and core import identities until their planned +matched releases; Go treats those identities as distinct. + ## Root `commandkit` The root facade owns captured canonical command declarations, application-owned diff --git a/docs/releases/v0.3.0.md b/docs/releases/v0.3.0.md index beddb1e..df93620 100644 --- a/docs/releases/v0.3.0.md +++ b/docs/releases/v0.3.0.md @@ -2,8 +2,9 @@ ## Summary -CommandKit v0.3.0 adds application-owned command and flag aliases and shared -invocation reporting. This pre-1.0 minor release also updates the installation +CommandKit v0.3.0 moves core to `go.maximumdirect.net/commandkit`, adds +application-owned command and flag aliases, shared invocation reporting, and +shell completion. This pre-1.0 minor release also updates the installation declaration type and Invocation struct shape, replaces the error-first outcome and diagnostic-delivery APIs, and reserves reporting flag names; review the migration guidance before upgrading. @@ -27,9 +28,22 @@ migration guidance before upgrading. `Outcome.WithExplanation`; attach an optional operation error separately with `Outcome.WithCause`. Returned `Outcome.Presentation` records output and diagnostic delivery observations without changing the operation cause. +- Install the optional `Completion` command and declare static choices or + path hints for interactive shell completion. Bash, Zsh, and Fish scripts + use the application's captured commands and routing metadata. +- Maintainer release tooling now uses the root-selected ReleaseKit v0.9.0 tool, + with separate source publication and optional page-only hosted delivery. ## Compatibility and migration +Change core imports from `gitea.maximumdirect.net/eric/CommandKit` to +`go.maximumdirect.net/commandkit` and select v0.3.0. These paths identify +different Go packages, so their types cannot be mixed. Applications using the +integrations should migrate together to the forthcoming matched +`go.maximumdirect.net/ckconfig v0.2.0` and +`go.maximumdirect.net/ckprompt v0.2.0` releases, which depend on the new core; +the existing integration releases retain their old identities. + `New` and `App.Register` now accept `...Declaration` instead of `...Command`. Command, group, and integration command factories still return `Command`, so individual factory calls can be passed directly. A `[]Command` cannot be @@ -65,10 +79,10 @@ remains Go 1.26.8. Core v0.3.0 must be published before preparing dependent integration releases that adopt it and record downloaded dependency sums; this release does not change their v0.1.0 release records. -See the [consumer guide](https://gitea.maximumdirect.net/eric/CommandKit/src/tag/v0.3.0/docs/consumers/guide.md), -[CLI reference](https://gitea.maximumdirect.net/eric/CommandKit/src/tag/v0.3.0/docs/cli.md), -and [maintainer release procedure](https://gitea.maximumdirect.net/eric/CommandKit/src/tag/v0.3.0/docs/release.md). +See the [consumer guide](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.3.0/docs/consumers/guide.md), +[CLI reference](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.3.0/docs/cli.md), +and [maintainer release procedure](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.3.0/docs/release.md). -[COPYRIGHT](https://gitea.maximumdirect.net/eric/CommandKit/src/tag/v0.3.0/COPYRIGHT) | -[LICENSE](https://gitea.maximumdirect.net/eric/CommandKit/src/tag/v0.3.0/LICENSE) | -[ATTRIBUTION](https://gitea.maximumdirect.net/eric/CommandKit/src/tag/v0.3.0/docs/oss/attribution.md) +[COPYRIGHT](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.3.0/COPYRIGHT) | +[LICENSE](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.3.0/LICENSE) | +[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.3.0/docs/oss/attribution.md) diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index 275a2f7..18e0e69 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -1,6 +1,6 @@ # CommandKit vanity migration and dependency alignment plan -Status: planned; Stages 1–7 are not started. +Status: Stage 1 complete; Stages 2–7 are not started. This plan is for the Luna coding agent implementing the [feature roadmap](integration-dependency-alignment.md). Follow the stages in @@ -100,7 +100,10 @@ than permanently changing proxy settings. Retain authentic downloaded sums. ## Stage 1: Migrate core identity and prepare its release candidate -**Status:** not started. +**Completed.** The root module, owned imports, component build identity, +consumer guidance, and v0.3.0 release note use the new core identity. The +focused build-identity test passed offline with Go 1.26.8; affected links and +whitespace were checked. The complete candidate suite belongs to publication. 1. Change only the root module declaration to `go.maximumdirect.net/commandkit`. Migrate root-owned imports in production files, root/external tests, internal diff --git a/examples/core/README.md b/examples/core/README.md index 8f2833d..2bdb539 100644 --- a/examples/core/README.md +++ b/examples/core/README.md @@ -24,8 +24,10 @@ Bash. Build it with the basename shown above, load the script for your shell using the [CLI reference](../../docs/cli.md#shell-completion), and try completing `core-example report d` or `core-example ws gr`. -Integration factories also return `commandkit.Command` and can be passed -directly to `New` beside `commandkit.Alias` or flag-alias declarations. For a +Compatible integration factories also return `commandkit.Command` and can be +passed directly to `New` beside `commandkit.Alias` or flag-alias declarations. +The current integrations still use the old core identity; the planned matched +vanity-path releases will use the new core identity. For a command-only `[]commandkit.Command`, convert its elements into a `[]commandkit.Declaration` before appending routing rules; Go cannot expand the command slice as `...commandkit.Declaration`. The @@ -33,7 +35,5 @@ command slice as `...commandkit.Declaration`. The shows both forms, and the [composed consumer](../../integrations/ckprompt/examples/composed) is the maintained integration example. -These aliases use the current local CommandKit source. Published CommandKit -v0.2.0 does not include alias declarations; consumers can use them after the -next core release. Repository contributors can run its test with +These aliases require core v0.3.0. Repository contributors can run its test with `go test ./examples/core` from the root. diff --git a/examples/core/main.go b/examples/core/main.go index fc517c0..ac88841 100644 --- a/examples/core/main.go +++ b/examples/core/main.go @@ -8,7 +8,7 @@ import ( "os" "strconv" - commandkit "gitea.maximumdirect.net/eric/CommandKit" + commandkit "go.maximumdirect.net/commandkit" ) type greetInput struct { diff --git a/examples/core/main_test.go b/examples/core/main_test.go index 1c183e5..af317f1 100644 --- a/examples/core/main_test.go +++ b/examples/core/main_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - commandkit "gitea.maximumdirect.net/eric/CommandKit" + commandkit "go.maximumdirect.net/commandkit" ) func TestAliasesReachCoreExampleCommand(t *testing.T) { diff --git a/execute.go b/execute.go index 457d16a..7abce02 100644 --- a/execute.go +++ b/execute.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) // Execute parses and dispatches one invocation. args excludes the executable diff --git a/execute_external_test.go b/execute_external_test.go index 092c58a..b85b408 100644 --- a/execute_external_test.go +++ b/execute_external_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - commandkit "gitea.maximumdirect.net/eric/CommandKit" + commandkit "go.maximumdirect.net/commandkit" ) func TestExecuteRunsTypedCommandsWithFreshInvocationState(t *testing.T) { diff --git a/flag_aliases.go b/flag_aliases.go index f7d09f3..c0bd803 100644 --- a/flag_aliases.go +++ b/flag_aliases.go @@ -5,8 +5,8 @@ import ( "sort" "strings" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) type resolvedFlagAlias struct { diff --git a/flag_aliases_test.go b/flag_aliases_test.go index 14f40e9..66885dc 100644 --- a/flag_aliases_test.go +++ b/flag_aliases_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) func flagAliasCommand(name string, flags ...Flag[struct{}]) Command { diff --git a/go.mod b/go.mod index 17f4703..5c32492 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.maximumdirect.net/eric/CommandKit +module go.maximumdirect.net/commandkit go 1.26.0 diff --git a/help_view.go b/help_view.go index 67278d5..09df5fe 100644 --- a/help_view.go +++ b/help_view.go @@ -3,8 +3,8 @@ package commandkit import ( "sort" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) func (a *App) helpView(route routeResult, snapshot *routingSnapshot) commandmeta.HelpView { diff --git a/internal/alias/machine.go b/internal/alias/machine.go index f943014..945d2c9 100644 --- a/internal/alias/machine.go +++ b/internal/alias/machine.go @@ -3,7 +3,7 @@ package alias import ( "sort" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + "go.maximumdirect.net/commandkit/internal/commandpath" ) type symbolKind uint8 diff --git a/internal/alias/provenance_test.go b/internal/alias/provenance_test.go index b0b2460..dea122b 100644 --- a/internal/alias/provenance_test.go +++ b/internal/alias/provenance_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + "go.maximumdirect.net/commandkit/internal/commandpath" ) func TestResolveWithProvenanceCarriesInputOriginsThroughChains(t *testing.T) { diff --git a/internal/alias/resolver.go b/internal/alias/resolver.go index 959d8a5..a6d8468 100644 --- a/internal/alias/resolver.go +++ b/internal/alias/resolver.go @@ -5,7 +5,7 @@ package alias import ( "fmt" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + "go.maximumdirect.net/commandkit/internal/commandpath" ) // Mapping replaces Source with Target when Source is the longest matching diff --git a/internal/alias/resolver_test.go b/internal/alias/resolver_test.go index d418cf8..2e4ee7e 100644 --- a/internal/alias/resolver_test.go +++ b/internal/alias/resolver_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + "go.maximumdirect.net/commandkit/internal/commandpath" ) func TestResolverUsesLongestTokenPrefixAndPreservesSuffix(t *testing.T) { diff --git a/internal/cobra/completion.go b/internal/cobra/completion.go index d17f805..11a8d5e 100644 --- a/internal/cobra/completion.go +++ b/internal/cobra/completion.go @@ -6,8 +6,8 @@ import ( "io" "strings" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" spfcobra "github.com/spf13/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) // CompletionQueryToken is the hidden request understood by generated scripts. diff --git a/internal/cobra/completion_test.go b/internal/cobra/completion_test.go index 10a70e0..fc35538 100644 --- a/internal/cobra/completion_test.go +++ b/internal/cobra/completion_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" spfcobra "github.com/spf13/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func TestCompletionScriptGeneration(t *testing.T) { diff --git a/internal/cobra/flags.go b/internal/cobra/flags.go index 75c9e12..6cc00df 100644 --- a/internal/cobra/flags.go +++ b/internal/cobra/flags.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func interpretFlagTokens(argv []string, flags []commandmeta.Flag, aliases []commandmeta.FlagAlias) ([]string, map[string][]string, []commandmeta.FlagOccurrence, *commandmeta.Failure) { diff --git a/internal/cobra/flags_test.go b/internal/cobra/flags_test.go index eac7f90..f0b0746 100644 --- a/internal/cobra/flags_test.go +++ b/internal/cobra/flags_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func flagGrammarTree() *commandmeta.Command { diff --git a/internal/cobra/parse.go b/internal/cobra/parse.go index 7bc4787..81489fa 100644 --- a/internal/cobra/parse.go +++ b/internal/cobra/parse.go @@ -10,8 +10,8 @@ import ( "strconv" "strings" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" spfcobra "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/internal/cobra/parse_test.go b/internal/cobra/parse_test.go index 526abdd..74224a2 100644 --- a/internal/cobra/parse_test.go +++ b/internal/cobra/parse_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" spfcobra "github.com/spf13/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) type Command = commandmeta.Command diff --git a/parser.go b/parser.go index 81ab63c..82a01cd 100644 --- a/parser.go +++ b/parser.go @@ -5,9 +5,9 @@ import ( "sort" "strconv" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) func (a *App) parse(args []string, options commandmeta.ParseOptions) commandmeta.Result { diff --git a/parser_reporting_test.go b/parser_reporting_test.go index 2afdaf4..78415c7 100644 --- a/parser_reporting_test.go +++ b/parser_reporting_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func newReportingParseApp(t *testing.T) *App { diff --git a/parser_test.go b/parser_test.go index c2cf159..455ad75 100644 --- a/parser_test.go +++ b/parser_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) func TestAppParseUsesRegisteredBindingsWithTheAdapter(t *testing.T) { diff --git a/performance_dispatch_test.go b/performance_dispatch_test.go index ddfa743..2defad6 100644 --- a/performance_dispatch_test.go +++ b/performance_dispatch_test.go @@ -7,7 +7,7 @@ import ( "io" "testing" - commandkit "gitea.maximumdirect.net/eric/CommandKit" + commandkit "go.maximumdirect.net/commandkit" ) var performanceUsageCause = errors.New("benchmark usage result") diff --git a/registry.go b/registry.go index c61fb32..7dc8d24 100644 --- a/registry.go +++ b/registry.go @@ -5,10 +5,10 @@ import ( "fmt" "sort" - internalalias "gitea.maximumdirect.net/eric/CommandKit/internal/alias" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + internalalias "go.maximumdirect.net/commandkit/internal/alias" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" + "go.maximumdirect.net/commandkit/internal/commandmeta" + "go.maximumdirect.net/commandkit/internal/commandpath" ) // Register adds a batch of canonical commands and routing rules to the diff --git a/registry_test.go b/registry_test.go index eed8983..969b438 100644 --- a/registry_test.go +++ b/registry_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + "go.maximumdirect.net/commandkit/internal/commandpath" ) type registryInput struct{ value string } diff --git a/reporter.go b/reporter.go index 5c133cf..6237a2a 100644 --- a/reporter.go +++ b/reporter.go @@ -7,7 +7,7 @@ import ( "strings" "sync" - commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta" + commandmeta "go.maximumdirect.net/commandkit/internal/commandmeta" ) type reportingMode uint8 diff --git a/route.go b/route.go index 4e7b74b..f418d3a 100644 --- a/route.go +++ b/route.go @@ -3,7 +3,7 @@ package commandkit import ( "strings" - "gitea.maximumdirect.net/eric/CommandKit/internal/commandpath" + "go.maximumdirect.net/commandkit/internal/commandpath" ) type routeKind uint8 diff --git a/testdata/completion/main.go b/testdata/completion/main.go index 91e8947..702edec 100644 --- a/testdata/completion/main.go +++ b/testdata/completion/main.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - commandkit "gitea.maximumdirect.net/eric/CommandKit" - internalcobra "gitea.maximumdirect.net/eric/CommandKit/internal/cobra" + commandkit "go.maximumdirect.net/commandkit" + internalcobra "go.maximumdirect.net/commandkit/internal/cobra" ) func main() {