instructions

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitExample = "git-example"

	GitAdd      = "git-add"
	GitCheckout = "git-checkout"
	GitClone    = "git-clone"
	GitCommit   = "git-commit"
	GitConfig   = "git-config"
	GitFetch    = "git-fetch"
	GitInit     = "git-init"
	GitPull     = "git-pull"
	GitPush     = "git-push"
	GitStatus   = "git-status"
)

定义标准的git命令名称

Variables

This section is empty.

Functions

This section is empty.

Types

type Add added in v0.0.5

type Add struct {
	repositories.Meta

	Service AddService
}

Add 表示一条git命令

func NewAdd added in v0.0.5

func NewAdd(c context.Context) *Add

NewAdd ...

func (*Add) GetMeta added in v0.0.5

func (inst *Add) GetMeta() *repositories.Meta

GetMeta ...

func (*Add) Run added in v0.0.5

func (inst *Add) Run() error

Run ...

type AddService added in v0.0.5

type AddService interface {
	repositories.Service
	Run(task *Add) error
}

AddService 。。。

type Checkout added in v0.0.5

type Checkout struct {
	repositories.Meta

	Service CheckoutService
}

Checkout 表示一条git命令

func NewCheckout added in v0.0.5

func NewCheckout(c context.Context) *Checkout

NewCheckout ...

func (*Checkout) GetMeta added in v0.0.5

func (inst *Checkout) GetMeta() *repositories.Meta

GetMeta ...

func (*Checkout) Run added in v0.0.5

func (inst *Checkout) Run() error

Run ...

type CheckoutService added in v0.0.5

type CheckoutService interface {
	repositories.Service
	Run(task *Checkout) error
}

CheckoutService 。。。

type Clone added in v0.0.5

type Clone struct {
	repositories.Meta

	Service CloneService
}

Clone 表示一条git命令

func NewClone added in v0.0.5

func NewClone(c context.Context) *Clone

NewClone ...

func (*Clone) GetMeta added in v0.0.5

func (inst *Clone) GetMeta() *repositories.Meta

GetMeta ...

func (*Clone) Run added in v0.0.5

func (inst *Clone) Run() error

Run ...

type CloneService added in v0.0.5

type CloneService interface {
	repositories.Service
	Run(task *Clone) error
}

CloneService 。。。

type Commit added in v0.0.5

type Commit struct {
	repositories.Meta

	Service CommitService
}

Commit 表示一条git命令

func NewCommit added in v0.0.5

func NewCommit(c context.Context) *Commit

NewCommit ...

func (*Commit) GetMeta added in v0.0.5

func (inst *Commit) GetMeta() *repositories.Meta

GetMeta ...

func (*Commit) Run added in v0.0.5

func (inst *Commit) Run() error

Run ...

type CommitService added in v0.0.5

type CommitService interface {
	repositories.Service
	Run(task *Commit) error
}

CommitService 。。。

type Example added in v0.0.5

type Example struct {
	repositories.Meta

	Service ExampleService
}

Example 表示一条git命令

func NewExample added in v0.0.5

func NewExample(c context.Context) *Example

NewExample ...

func (*Example) GetMeta added in v0.0.5

func (inst *Example) GetMeta() *repositories.Meta

GetMeta ...

func (*Example) Run added in v0.0.5

func (inst *Example) Run() error

Run ...

type ExampleService added in v0.0.5

type ExampleService interface {
	repositories.Service
	Run(task *Example) error
}

ExampleService 。。。

type Fetch added in v0.0.5

type Fetch struct {
	repositories.Meta

	Service FetchService

	Depth                   bool // = "--depth"           // =<depth>
	Deepen                  bool // = "--deepen"          // =<depth>
	ShallowSince            bool // = "--shallow-since"   // =<date>
	ShallowExclude          bool // = "--shallow-exclude" // =<revision>
	NegotiationTip          bool // = "--negotiation-tip" // =<commit|glob>
	Refmap                  bool // = "--refmap" // =<refspec>
	RecurseSubmodule        bool // = "--recurse-submodules" // =[=yes|on-demand|no]
	Jobs                    bool // = "--jobs" // =<n>
	SubmodulePrefix         bool // = "--submodule-prefix"          // =<path>
	RecurseSubmoduleDefault bool // = "--recurse-submodule-default" // =[yes|on-demand]
	UploadPack              bool // = "--upload-pack" // <upload-pack>
	ServerOption            bool // = "--server- ion" // =< ion>

	All                 bool // = "--all"
	Append              bool // = "--append"
	Unshallow           bool // = "--unshallow"
	UpdateShallow       bool // = "--update-shallow"
	NegotiateOnly       bool // = "--negotiate-only"
	DryRun              bool // = "--dry-run"
	WriteFetchHead      bool // = "--write-fetch-head"
	NoWriteFetchHead    bool // = "--no-write-fetch-head"
	Force               bool // = "--force"
	Keep                bool // = "--keep"
	Multiple            bool // = "--multiple"
	NoAutoMaintenance   bool // = "--no-auto-maintenance"
	AutoMaintenance     bool // = "--auto-maintenance"
	NoAutoGC            bool // = "--no-auto-gc"
	AutoGC              bool // = "--auto-gc"
	NoWriteCommitGraph  bool // = "--no-write-commit-graph"
	WriteCommitGraph    bool // = "--write-commit-graph"
	Prefetch            bool // = "--prefetch"
	Prune               bool // = "--prune"
	PruneTags           bool // = "--prune-tags"
	NoTags              bool // = "--no-tags"
	Refetch             bool // = "--refetch"
	Tags                bool // = "--tags"
	NoRecurseSubmodules bool // = "--no-recurse-submodules"
	SetUpstream         bool // = "--set-upstream"
	UpdateHeadOK        bool // = "--update-head-ok"
	Quiet               bool // = "--quiet"
	Verbose             bool // = "--verbose"
	Progress            bool // = "--progress"
	ShowForcedUpdates   bool // = "--show-forced-updates"
	NoShowForcedUpdates bool // = "--no-show-forced-updates"
	Ipv4                bool // = "--ipv4"
	Ipv6                bool // = "--ipv6"
	Stdin               bool // = "--stdin"

	Items []string
}

Fetch 表示一条git命令

func NewFetch added in v0.0.5

func NewFetch(c context.Context) *Fetch

NewFetch ...

func (*Fetch) GetMeta added in v0.0.5

func (inst *Fetch) GetMeta() *repositories.Meta

GetMeta ...

func (*Fetch) Run added in v0.0.5

func (inst *Fetch) Run() error

Run ...

type FetchService added in v0.0.5

type FetchService interface {
	repositories.Service
	Run(task *Fetch) error
}

FetchService 。。。

type Init added in v0.0.5

type Init struct {
	repositories.Meta

	Service InitService

	Quiet             bool
	Bare              bool
	TemplateDirectory string
	SeparateGitDir    string
	ObjectFormat      string
	BranchName        string
	Shared            bool
	Permissions       string
	Directory         string
}

Init 表示一条git命令

func NewInit added in v0.0.5

func NewInit(c context.Context) *Init

NewInit ...

func (*Init) GetMeta added in v0.0.5

func (inst *Init) GetMeta() *repositories.Meta

GetMeta ...

func (*Init) Run added in v0.0.5

func (inst *Init) Run() error

Run ...

type InitService added in v0.0.5

type InitService interface {
	repositories.Service
	Run(task *Init) error
}

InitService 。。。

type Pull added in v0.0.5

type Pull struct {
	repositories.Meta

	Service PullService
}

Pull 表示一条git命令

func NewPull added in v0.0.5

func NewPull(c context.Context) *Pull

NewPull ...

func (*Pull) GetMeta added in v0.0.5

func (inst *Pull) GetMeta() *repositories.Meta

GetMeta ...

func (*Pull) Run added in v0.0.5

func (inst *Pull) Run() error

Run ...

type PullService added in v0.0.5

type PullService interface {
	repositories.Service
	Run(task *Pull) error
}

PullService 。。。

type Push added in v0.0.5

type Push struct {
	repositories.Meta

	Service PushService

	All                   bool
	Mirror                bool
	Tags                  bool
	FollowTags            bool
	Atomic                bool
	DryRun                bool
	ReceivePack           string
	Repo                  string
	Force                 bool
	Delete                bool
	Prune                 bool
	Verbose               bool
	SetUpstream           bool
	PushOption            string
	Signed                bool
	SignedValue           string
	NoSigned              bool
	ForceWithLease        string
	ForceIfIncludes       bool
	NoVerify              bool
	RepositoryRefspecList []string
}

Push 表示一条git命令

func NewPush added in v0.0.5

func NewPush(c context.Context) *Push

NewPush ...

func (*Push) GetMeta added in v0.0.5

func (inst *Push) GetMeta() *repositories.Meta

GetMeta ...

func (*Push) Run added in v0.0.5

func (inst *Push) Run() error

Run ...

type PushService added in v0.0.5

type PushService interface {
	repositories.Service
	Run(task *Push) error
}

PushService 。。。

type Status added in v0.0.5

type Status struct {
	repositories.Meta

	Service StatusService
}

Status 表示一条git命令

func NewStatus added in v0.0.5

func NewStatus(c context.Context) *Status

NewStatus ...

func (*Status) GetMeta added in v0.0.5

func (inst *Status) GetMeta() *repositories.Meta

GetMeta ...

func (*Status) Run added in v0.0.5

func (inst *Status) Run() error

Run ...

type StatusService added in v0.0.5

type StatusService interface {
	repositories.Service
	Run(task *Status) error
}

StatusService 。。。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL