update guide to make the command works as expected

Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
Dave Chen 2019-07-22 18:29:25 +08:00
parent 1cb3b5807e
commit 5d268b9570
2 changed files with 10 additions and 5 deletions

View File

@ -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:

View File

@ -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,
}