Skip to content

Commit 362b979

Browse files
committed
refactor: rename ComposeTeaCloneLink to ComposeTeaCloneCommand
Signed-off-by: Quentin Guidée <[email protected]>
1 parent f30e1b3 commit 362b979

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/repo/repo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,16 +688,16 @@ func ComposeSSHCloneLink(doer *user_model.User, ownerName, repoName string) stri
688688
return fmt.Sprintf("%s@%s:%s/%s.git", sshUser, sshHost, url.PathEscape(ownerName), url.PathEscape(repoName))
689689
}
690690

691-
// ComposeTeaCloneLink returns Tea CLI clone command based on the given owner and repository name.
692-
func ComposeTeaCloneLink(ctx context.Context, owner, repo string) string {
691+
// ComposeTeaCloneCommand returns Tea CLI clone command based on the given owner and repository name.
692+
func ComposeTeaCloneCommand(ctx context.Context, owner, repo string) string {
693693
return fmt.Sprintf("tea clone %s/%s", url.PathEscape(owner), url.PathEscape(repo))
694694
}
695695

696696
func (repo *Repository) cloneLink(ctx context.Context, doer *user_model.User, repoPathName string) *CloneLink {
697697
return &CloneLink{
698698
SSH: ComposeSSHCloneLink(doer, repo.OwnerName, repoPathName),
699699
HTTPS: ComposeHTTPSCloneLink(ctx, repo.OwnerName, repoPathName),
700-
Tea: ComposeTeaCloneLink(ctx, repo.OwnerName, repoPathName),
700+
Tea: ComposeTeaCloneCommand(ctx, repo.OwnerName, repoPathName),
701701
}
702702
}
703703

0 commit comments

Comments
 (0)