mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
refactor(repo,org,team,release): trim help texts, obvious comments and single-use helpers
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
11 files changed
+55
-129
No files matched your search
@@ -61,10 +61,8 @@ func (a *application) repoSetDefaultCommand() *cobra.Command {
|
||||
command := &cobra.Command{
|
||||
Use: "set-default [<repository>]",
|
||||
Short: "Set the default repository for this clone",
|
||||
Long: `Set the repository that tea commands use in the current Git clone, instead of the one found through
|
||||
its Git remotes. It is saved as tea.repository in the clone's Git configuration.
|
||||
|
||||
Without an argument, the repository that tea selects now is saved.`,
|
||||
Long: `Set the repository that tea commands use in the current Git clone instead of the one of its Git
|
||||
remotes (saved as tea.repository in the clone's Git configuration).`,
|
||||
Example: `# Make tea commands in this clone use the fork's parent
|
||||
$ tea repo set-default alice/project
|
||||
|
||||
@@ -280,7 +278,6 @@ $ tea repo view alice/project --web`,
|
||||
return view
|
||||
}
|
||||
|
||||
// repositoryView shows a repository with its README as the body.
|
||||
func (a *application) repositoryView(item services.Repository, readme string) terminal.View {
|
||||
badges := []terminal.Cell{{Text: "public", Color: "green"}}
|
||||
if item.Private {
|
||||
|
||||
Reference in new issue
Block a user