Documentation
¶
Overview ¶
Package kick provides high level git sync operations.
Index ¶
Constants ¶
const CommitMessageEnvironmentVariable = "KICK_MESSAGE"
CommitMessageEnvironmentVariable denotes the name of the environment variable controlling commit messages.
const DefaultCommitMessage = "up"
DefaultCommitMessage denotes a standard commit message.
const FetchAllEnvironmentVariable = "KICK_FETCH_ALL"
FetchAllEnvironmentVariable denotes the name of the environment variable controlling whether fetches process all remotes.
const NonceEnvironmentVariable = "KICK_NONCE"
NonceEnvironmentVariable denotes the name of the environment variable controlling nonces.
const NoncePath = ".kick"
NoncePath denotes the file path to a nonce file, relative to the current working directory.
const PullAllEnvironmentVariable = "KICK_PULL_ALL"
PullAllEnvironmentVariable denotes the name of the environment variable controlling whether pulls process all remotes.
const PushAllEnvironmentVariable = "KICK_PUSH_ALL"
PushAllEnvironmentVariable denotes the name of the environment variable controlling whether pushes process all remotes.
const SyncTagsEnvironmentVariable = "KICK_SYNC_TAGS"
SyncTagsEnvironmentVariable denotes the name of the environment variable controlling whether to push and pull tags.
const Version = "0.0.8"
Version is semver.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Debug enables additional logging (default: false). Debug bool // Nonce enables altering NoncePath to generate commits when repositories are otherwise unchanged (default: false). Nonce bool // FetchAll enables fetching from all remotes (default: true). FetchAll bool // PullAll enables pulling from all remotes (default: true). PullAll bool // PushAll enables pushing to all remotes (default: true). PushAll bool // SyncTags enables pushing and pulling tags (default: true). SyncTags bool // CommitMessage denotes a git commit message (default: DefaultCommitMessage). CommitMessage string // contains filtered or unexported fields }
Config prepares high level git sync operations.
func (Config) EnsureNonce ¶
EnsureNonce updates NoncePath with the current timestamp.
func (Config) Kick ¶
Kick automates:
* Staging all file changes * Committing all changes * Pulling any remote changes * Pushing any local changes * Pulling and pushing tags
func (*Config) QueryRemotes ¶ added in v0.0.6
QueryRemotes populates metadata for remotes.