Documentation
¶
Overview ¶
Package git provides Git integration for OpenPass vaults.
Index ¶
- Constants
- func AutoCommit(vaultDir string, message string) error
- func AutoCommitAndPush(vaultDir string, message string, autoPush bool) error
- func AutoCommitWithOptions(vaultDir string, opts CommitOptions) error
- func CreateGitignore(vaultDir string) error
- func Init(vaultDir string) error
- func Pull(vaultDir string) error
- func Push(vaultDir string) error
- type Commit
- type CommitOptions
- type PushError
- type PushResult
Constants ¶
View Source
const DefaultCommitTemplate = "Update from OpenPass"
DefaultCommitTemplate is the default commit message template
View Source
const DefaultGitignoreContent = `` /* 215-byte string literal not displayed */
DefaultGitignoreContent is the default .gitignore content for OpenPass vaults
Variables ¶
This section is empty.
Functions ¶
func AutoCommit ¶
AutoCommit performs a simple auto-commit with the given message
func AutoCommitAndPush ¶
AutoCommitAndPush performs auto-commit and optionally auto-push
func AutoCommitWithOptions ¶
func AutoCommitWithOptions(vaultDir string, opts CommitOptions) error
AutoCommitWithOptions performs an auto-commit with the given options
func CreateGitignore ¶
CreateGitignore creates a .gitignore file in the vault directory
Types ¶
type CommitOptions ¶
CommitOptions holds options for committing
type PushResult ¶
PushResult represents the result of a push operation
func PushWithResult ¶
func PushWithResult(vaultDir string) PushResult
PushWithResult pushes to origin and returns detailed result
Click to show internal directories.
Click to hide internal directories.