mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +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
|
### fake-gitserver
|
||||||
|
|
||||||
Fakes a git server. When doing `git clone localhost:8000`, you will clone an empty git
|
Fakes a git server. When doing `git clone http://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
|
repo named `localhost` on local. You can also use `git clone http://localhost:8000 my-repo-name` to
|
||||||
rename that repo.
|
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:
|
Usage:
|
||||||
|
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
var CmdFakeGitServer = &cobra.Command{
|
var CmdFakeGitServer = &cobra.Command{
|
||||||
Use: "fake-gitserver",
|
Use: "fake-gitserver",
|
||||||
Short: "Fakes a git server",
|
Short: "Fakes a git server",
|
||||||
Long: `When doing "git clone localhost:8000", you will clone an empty git repo named "8000" on local.
|
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 localhost:8000 my-repo-name" to rename that repo.`,
|
You can also use "git clone http://localhost:8000 my-repo-name" to rename that repo.`,
|
||||||
Args: cobra.MaximumNArgs(0),
|
Args: cobra.MaximumNArgs(0),
|
||||||
Run: main,
|
Run: main,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user