...

Package fakegitserver

import "k8s.io/kubernetes/test/images/agnhost/fakegitserver"
Overview
Index

Overview ▾

Index ▾

Package files

gitserver.go

Variables

CmdFakeGitServer is used by agnhost Cobra.

var CmdFakeGitServer = &cobra.Command{
    Use:   "fake-gitserver",
    Short: "Fakes a git server",
    Long: `When doing "git clone http://localhost:8000", you will clone an empty git repo named "localhost" on local.
You can also use "git clone http://localhost:8000 my-repo-name" to rename that repo.`,
    Args: cobra.MaximumNArgs(0),
    Run:  main,
}