mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
update guide to make the command works as expected
Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
parent
1cb3b5807e
commit
5d268b9570
@ -164,9 +164,14 @@ Usage:
|
||||
|
||||
### fake-gitserver
|
||||
|
||||
Fakes a git server. When doing `git clone localhost:8000`, you will clone an empty git
|
||||
repo named `8000` on local. You can also use `git clone localhost:8000 my-repo-name` to
|
||||
rename that repo.
|
||||
Fakes a git server. 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. Access to the service with the backing pod will show you below information.
|
||||
|
||||
```console
|
||||
curl -w "\n" http://localhost:8000
|
||||
I am a fake git server
|
||||
```
|
||||
|
||||
Usage:
|
||||
|
||||
|
@ -27,8 +27,8 @@ import (
|
||||
var CmdFakeGitServer = &cobra.Command{
|
||||
Use: "fake-gitserver",
|
||||
Short: "Fakes a git server",
|
||||
Long: `When doing "git clone localhost:8000", you will clone an empty git repo named "8000" on local.
|
||||
You can also use "git clone localhost:8000 my-repo-name" to rename that repo.`,
|
||||
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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user