Add tea clone #411

Merged
lunny merged 14 commits from noerw/tea:add-repo-clone into master 2021-10-18 12:09:28 +00:00
3 changed files with 4 additions and 3 deletions
Showing only changes of commit 4077ea7102 - Show all commits

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repos
package cmd
import (
"code.gitea.io/tea/cmd/flags"
@ -18,7 +18,8 @@ var CmdRepoClone = cli.Command{
Name: "clone",
Aliases: []string{"C"},
Usage: "Clone a repository locally",
Description: "Clone a repository locally, without a local git installation required (defaults to PWD)",
Description: "Clone a repository locally, without a local git installation required",
Category: catHelpers,
Action: runRepoClone,
ArgsUsage: "[target dir]",
Flags: append([]cli.Flag{

View File

@ -28,7 +28,6 @@ var CmdRepos = cli.Command{
&repos.CmdReposSearch,
&repos.CmdRepoCreate,
&repos.CmdRepoFork,
&repos.CmdRepoClone,
},
Flags: repos.CmdReposListFlags,
}

View File

@ -49,6 +49,7 @@ func main() {
&cmd.CmdOpen,
&cmd.CmdNotifications,
&cmd.CmdRepoClone,
}
app.EnableBashCompletion = true
err := app.Run(os.Args)