From a7e404c9d063607fbaca72a4cda389692f1fdcd4 Mon Sep 17 00:00:00 2001 From: Snider Date: Fri, 30 Jan 2026 17:14:31 +0000 Subject: [PATCH] refactor(i18n): remove unused keys.go IntentCore* constants were for the removed C() function. Key* constants were never adopted. Co-Authored-By: Claude Opus 4.5 --- pkg/i18n/keys.go | 130 ----------------------------------------------- 1 file changed, 130 deletions(-) delete mode 100644 pkg/i18n/keys.go diff --git a/pkg/i18n/keys.go b/pkg/i18n/keys.go deleted file mode 100644 index 2bc8ec13..00000000 --- a/pkg/i18n/keys.go +++ /dev/null @@ -1,130 +0,0 @@ -// Package i18n provides internationalization for the CLI. -// -// To validate i18n key usage: -// -// go run ./cmd/i18n-validate ./... -// task i18n:validate -package i18n - -// Intent keys for type-safe intent references. -// Use these constants instead of string literals to catch typos at compile time. -// -// result := C(IntentCoreDelete, S("file", "config.yaml")) -const ( - // Destructive actions - IntentCoreDelete = "core.delete" - IntentCoreRemove = "core.remove" - IntentCoreDiscard = "core.discard" - IntentCoreReset = "core.reset" - IntentCoreOverwrite = "core.overwrite" - - // Creation actions - IntentCoreCreate = "core.create" - IntentCoreAdd = "core.add" - IntentCoreClone = "core.clone" - IntentCoreCopy = "core.copy" - - // Modification actions - IntentCoreSave = "core.save" - IntentCoreUpdate = "core.update" - IntentCoreRename = "core.rename" - IntentCoreMove = "core.move" - - // Git actions - IntentCoreCommit = "core.commit" - IntentCorePush = "core.push" - IntentCorePull = "core.pull" - IntentCoreMerge = "core.merge" - IntentCoreRebase = "core.rebase" - - // Network actions - IntentCoreInstall = "core.install" - IntentCoreDownload = "core.download" - IntentCoreUpload = "core.upload" - IntentCorePublish = "core.publish" - IntentCoreDeploy = "core.deploy" - - // Process actions - IntentCoreStart = "core.start" - IntentCoreStop = "core.stop" - IntentCoreRestart = "core.restart" - IntentCoreRun = "core.run" - IntentCoreBuild = "core.build" - IntentCoreTest = "core.test" - - // Information actions - IntentCoreContinue = "core.continue" - IntentCoreProceed = "core.proceed" - IntentCoreConfirm = "core.confirm" - - // Additional actions - IntentCoreSync = "core.sync" - IntentCoreBoot = "core.boot" - IntentCoreFormat = "core.format" - IntentCoreAnalyse = "core.analyse" - IntentCoreLink = "core.link" - IntentCoreUnlink = "core.unlink" - IntentCoreFetch = "core.fetch" - IntentCoreGenerate = "core.generate" - IntentCoreValidate = "core.validate" - IntentCoreCheck = "core.check" - IntentCoreScan = "core.scan" -) - -// Common message keys for type-safe message references. -const ( - // CLI status messages - KeyCliSuccess = "cli.success" - KeyCliError = "cli.error" - KeyCliWarning = "cli.warning" - KeyCliInfo = "cli.info" - KeyCliDone = "cli.done" - KeyCliFailed = "cli.failed" - KeyCliPass = "cli.pass" - KeyCliFail = "cli.fail" - KeyCliOK = "cli.ok" - KeyCliSkip = "cli.skip" - KeyCliPending = "cli.pending" - KeyCliCompleted = "cli.completed" - KeyCliCancelled = "cli.cancelled" - KeyCliAborted = "cli.aborted" - - // Common prompts - KeyCommonPromptYes = "common.prompt.yes" - KeyCommonPromptNo = "common.prompt.no" - KeyCommonPromptContinue = "common.prompt.continue" - KeyCommonPromptProceed = "common.prompt.proceed" - KeyCommonPromptConfirm = "common.prompt.confirm" - KeyCommonPromptAbort = "common.prompt.abort" - KeyCommonPromptCancel = "common.prompt.cancel" - - // Common labels - KeyCommonLabelError = "common.label.error" - KeyCommonLabelDone = "common.label.done" - KeyCommonLabelStatus = "common.label.status" - KeyCommonLabelVersion = "common.label.version" - KeyCommonLabelSummary = "common.label.summary" - KeyCommonLabelSuccess = "common.label.success" - KeyCommonLabelWarning = "common.label.warning" - KeyCommonLabelNote = "common.label.note" - KeyCommonLabelTotal = "common.label.total" - KeyCommonLabelCoverage = "common.label.coverage" - KeyCommonLabelPath = "common.label.path" - KeyCommonLabelURL = "common.label.url" - - // Common status - KeyCommonStatusRunning = "common.status.running" - KeyCommonStatusStopped = "common.status.stopped" - KeyCommonStatusDirty = "common.status.dirty" - KeyCommonStatusSynced = "common.status.synced" - KeyCommonStatusUpToDate = "common.status.up_to_date" - KeyCommonStatusInstalling = "common.status.installing" - KeyCommonStatusCloning = "common.status.cloning" - - // Error messages - KeyErrorNotFound = "error.not_found" - KeyErrorInvalid = "error.invalid" - KeyErrorPermission = "error.permission" - KeyErrorTimeout = "error.timeout" - KeyErrorNetwork = "error.network" -)