Documentation
¶
Overview ¶
Package cmd — amend.go handles flag parsing and orchestration for the amend command.
Package cmd — amendaudit.go handles audit JSON writing and DB persistence.
Package cmd — amendexec.go handles git operations for the amend command.
Package cmd — amendexecprint.go handles output and display for amend operations.
Package cmd — amendlist.go handles the amend-list command.
Package cmd implements the CLI commands for gitmap.
Package cmd — clonenextcrossdir.go implements the cross-dir `gitmap cn <repo> <version>` form: chdir into the named repo, run the existing clone-next pipeline, then chdir back.
Backward compatibility: `gitmap cn vX.Y.Z` (single positional) keeps operating on the current directory's repo as before.
Package cmd implements the CLI commands for gitmap.
Package cmd — haschange.go implements `gitmap has-change (hc) <repo>`.
Prints "true" or "false" depending on whether the named repo has uncommitted changes (default), is ahead of origin, or is behind origin. Use --mode to switch dimensions; --all prints structured output covering all three.
Examples:
gitmap hc gitmap -> true | false (dirty working tree) gitmap hc gitmap --mode=ahead -> true | false (local commits not pushed) gitmap hc gitmap --mode=behind -> true | false (remote commits not pulled) gitmap hc gitmap --all -> dirty=true ahead=false behind=true
Package cmd — latest-branch command handler.
Package cmd — latest-branch output formatters.
Package cmd — latest-branch resolve helpers.
Package cmd — llmdocs.go generates a consolidated LLM.md reference file.
Package cmd — llmdocscommands.go writes the command reference tables.
Package cmd — llmdocsgroups.go defines command groups for LLM doc generation.
Package cmd — llmdocsheader.go writes the header and architecture sections.
Package cmd — llmdocssections.go writes the remaining LLM.md sections.
Package cmd — migrate.go handles automatic migration of legacy directories.
Package cmd — projectrepos.go handles project type query commands.
Package cmd — projectreposoutput.go formats project query output.
Package cmd implements the CLI commands for gitmap.
Package cmd implements the CLI commands for gitmap.
Package cmd implements the CLI commands for gitmap.
Package cmd — releaserebase.go implements the cross-dir `gitmap r <repo> <version>` form: pull --rebase the named repo, then run the standard release pipeline, then chdir back to the original directory.
Backward compatibility: `gitmap r vX.Y.Z` (single positional arg) keeps running an in-place release of the current repo. The new behavior only triggers when TWO positional args are given AND the first does NOT look like a version string (e.g. v3.31.0, 3.31.0).
Package cmd implements the CLI commands for gitmap.
Package cmd — scanprojectoutput.go writes project-specific JSON files.
Package cmd — scanprojects.go handles project detection during scan.
Package cmd — scanprojectsmeta.go handles Go and C# metadata persistence.
Package cmd — seowrite.go handles flag parsing and orchestration for seo-write.
Package cmd — seowritecreate.go scaffolds a sample seo-templates.json.
Package cmd — seowritecsv.go handles CSV parsing for seo-write.
Package cmd — seowriteloop.go handles the commit loop, rotation, and timing.
Package cmd — seowritetemplate.go handles template loading and placeholder substitution.
Package cmd — sshexisting.go handles the case where an SSH key already exists on disk when `gitmap ssh` is invoked. Instead of forwarding the stdin "Overwrite (y/n)?" prompt to `ssh-keygen` (which fails non-interactively and confuses users), we detect the existing key UP FRONT, print the public key + fingerprint, and exit cleanly. Pass `--force` to regenerate.
Package cmd implements CLI command handlers for gitmap.
Package cmd implements CLI command handlers for gitmap.
Package cmd — extra cleanup passes for update-cleanup.
These complement the pattern-based pass in updatecleanup_remove.go by targeting two artifact classes that don't fit the simple-glob model:
- The obsolete v2.90.0 drive-root forwarding shim (e.g. E:\gitmap.exe sitting at the literal drive root, NOT inside a gitmap\ subfolder).
- *.gitmap-tmp-* swap directories left by interrupted clones.
Both passes follow the spec/04-generic-cli/22-data-folder-deploy-and-cleanup.md contract (DFD-6, DFD-7).
Index ¶
- func AliasAsRecords() []store.AliasWithRepo
- func CheckSequenceRange(start, count, digits int) error
- func FormatSeq(seq, digits int) string
- func GetAliasPath() string
- func GetAliasSlug() string
- func HasAlias() bool
- func ParseVersionPatternSafe(pattern string) (string, int)
- func PrintBinaryLocations()
- func ResolveTRBranchExported(version string) string
- func Run()
- type CloneNextFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AliasAsRecords ¶
func AliasAsRecords() []store.AliasWithRepo
AliasAsRecords returns the alias as a single-element ScanRecord slice. Useful for commands that operate on a list of repos.
func CheckSequenceRange ¶
CheckSequenceRange validates sequence range without os.Exit.
func GetAliasPath ¶
func GetAliasPath() string
GetAliasPath returns the resolved alias path if set, or empty string.
func GetAliasSlug ¶
func GetAliasSlug() string
GetAliasSlug returns the resolved alias slug if set, or empty string.
func ParseVersionPatternSafe ¶
ParseVersionPatternSafe parses a version pattern without os.Exit.
func PrintBinaryLocations ¶
func PrintBinaryLocations()
PrintBinaryLocations prints the Active / Deployed / Config binary triplet to stdout. Called from bare `gitmap` (no args) and from the post-update readout. The output is suppressed when --no-banner is in os.Args or when the GITMAP_QUIET env var is set to "1".
Definitions (see spec/01-app/89-deploy-layout-and-binary-readout.md):
- Active = os.Executable() after filepath.EvalSymlinks. The file the OS actually loaded for this process.
- Deployed = <powershell.json.deployPath>/gitmap-cli/<binaryName> if it exists on disk; "(not found)" otherwise.
- Config = literal path the config declares, whether or not the file exists. Represents config intent.
func ResolveTRBranchExported ¶
ResolveTRBranchExported is an exported wrapper for testing resolveTRBranch.
Types ¶
type CloneNextFlags ¶
type CloneNextFlags struct {
VersionArg string
Delete bool
Keep bool
NoDesktop bool
CreateRemote bool
SSHKeyName string
Verbose bool
CSVPath string
All bool
}
CloneNextFlags bundles every parsed flag from the clone-next command so the dispatcher in runCloneNext can branch on batch vs single mode without a 9-arg return list.
Source Files
¶
- alias.go
- aliasops.go
- aliasresolve.go
- aliassuggest.go
- amend.go
- amendaudit.go
- amendexec.go
- amendexecprint.go
- amendlist.go
- as.go
- asops.go
- audit.go
- binarylocations.go
- bookmark.go
- bookmarklist.go
- bookmarkrun.go
- bookmarksave.go
- cd.go
- cddefault.go
- cdops.go
- changelog.go
- changeloggen.go
- changelogprint.go
- changelogwrap.go
- clearreleasejson.go
- clone.go
- clonenext.go
- clonenextbatch.go
- clonenextbatchdispatch.go
- clonenextcrossdir.go
- clonenextflags.go
- clonenexthistory.go
- clonereplace.go
- clonevscode.go
- code.go
- completion.go
- dashboard.go
- dbmigrate.go
- dbreset.go
- desktopsync.go
- diff.go
- diffprofiles.go
- diffprofilesops.go
- dispatchdiff.go
- dispatchmovemerge.go
- docs.go
- doctor.go
- doctorchecks.go
- doctordupbin.go
- doctorfixpath.go
- doctorformat.go
- doctorintegrity.go
- doctorsetup.go
- doctorsync.go
- doctorvalidate.go
- doctorversion.go
- doctorvscodepm.go
- dopending.go
- dopendingretry.go
- env.go
- envops.go
- envplatform_unix.go
- envregistry.go
- envvalidate.go
- exec.go
- execprint.go
- export.go
- findnext.go
- githubdesktop.go
- gomod.go
- gomodbranch.go
- gomodreplace.go
- group.go
- groupadd.go
- groupcreate.go
- groupdelete.go
- grouplist.go
- groupremove.go
- groupscoped.go
- groupshow.go
- hasanyupdates.go
- haschange.go
- helpcheck.go
- helpdashboard.go
- hints.go
- history.go
- historyreset.go
- importcmd.go
- install.go
- installcleancode.go
- installctxmenu.go
- installdetect.go
- installeddir.go
- installnpp.go
- installnppextract.go
- installobs.go
- installscripts.go
- installtools.go
- installverify.go
- installvscode.go
- installwt.go
- interactive.go
- jsonextract.go
- latestbranch.go
- latestbranchoutput.go
- latestbranchresolve.go
- list.go
- listreleases.go
- listreleasesallrepos.go
- listreleasesload.go
- listversions.go
- listversionsutil.go
- llmdocs.go
- llmdocscommands.go
- llmdocsgroups.go
- llmdocsheader.go
- llmdocssections.go
- merge.go
- migrate.go
- move.go
- movemergeflags.go
- multigroup.go
- multigroupops.go
- pending.go
- pendingtaskhelper.go
- probe.go
- profile.go
- profileops.go
- profileutil.go
- projectrepos.go
- projectreposoutput.go
- prune.go
- pruneops.go
- pull.go
- pullfilter.go
- pullparallel.go
- release.go
- releasealias.go
- releasealias_git.go
- releaseargs.go
- releaseautobump.go
- releaseautoregister.go
- releasebranch.go
- releasepending.go
- releasepersist.go
- releaserebase.go
- releasescan.go
- releaseself.go
- rescan.go
- reset.go
- revert.go
- revertscript.go
- root.go
- rootcore.go
- rootdata.go
- rootflags.go
- rootprojectrepos.go
- rootrelease.go
- roottooling.go
- rootusage.go
- rootusagecompact.go
- rootusageflags.go
- rootutility.go
- scan.go
- scanimport.go
- scanoutput.go
- scanprojectoutput.go
- scanprojects.go
- scanprojectsmeta.go
- selfinstall.go
- selfuninstall.go
- selfuninstallhandoff.go
- selfuninstallparts.go
- seowrite.go
- seowritecreate.go
- seowritecsv.go
- seowritegit.go
- seowriteloop.go
- seowritetemplate.go
- setsourcerepo.go
- setup.go
- setupconfig.go
- setupprintpathsnippet.go
- setupverify.go
- sf.go
- ssh.go
- sshcat.go
- sshconfig.go
- sshdelete.go
- sshexisting.go
- sshgen.go
- sshgenutil.go
- sshlist.go
- stats.go
- status.go
- statusformat.go
- statusprint.go
- task.go
- taskfilter.go
- taskops.go
- tasksync.go
- temprelease.go
- tempreleaseexport_test_helpers.go
- tempreleaselist.go
- tempreleaseops.go
- tempreleaseremove.go
- uninstall.go
- update.go
- updatecleanup.go
- updatecleanup_extra.go
- updatecleanup_paths.go
- updatecleanup_remove.go
- updaterepo.go
- updatereport.go
- updatescript.go
- versionhistory.go
- vscodepmpath.go
- vscodepmsync.go
- watch.go
- watchformat.go
- watchops.go
- zipgroup.go
- zipgroupcreate.go
- zipgroupops.go
- zipgroupshow.go