This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
package utils | ||
|
||
import "fmt" | ||
import ( | ||
"fmt" | ||
"os" | ||
"text/tabwriter" | ||
) | ||
|
||
// PrintHelpRepo : display repo help | ||
// PrintHelpRepo : display repo command help | ||
func PrintHelpRepo() { | ||
tabWriter := tabwriter.NewWriter(os.Stdout, 0, 8, 2, '\t', 0) | ||
defer tabWriter.Flush() | ||
fmt.Println("USAGE") | ||
fmt.Println(" glab repo <subcommand> [flags]") | ||
fmt.Println() | ||
fmt.Println("SUBCOMMANDS") | ||
fmt.Fprintf(tabWriter, " %s:\t%s\n", "clone", "Clone a repository") | ||
} | ||
|
||
fmt.Println(`Repo Help`) | ||
|
||
// PrintHelpRepoClone : display repo clone command help | ||
func PrintHelpRepoClone() { | ||
tabWriter := tabwriter.NewWriter(os.Stdout, 0, 8, 2, '\t', 0) | ||
defer tabWriter.Flush() | ||
fmt.Println("Clone a repository") | ||
fmt.Println() | ||
fmt.Println("USAGE") | ||
fmt.Println(" glab repo clone <owner/repo> [<dir>] [<format>]") | ||
fmt.Println() | ||
fmt.Println("OPTIONS") | ||
fmt.Fprintf(tabWriter, " %s:\t%s\n", "dir", `The directory to save the repository to`) | ||
fmt.Fprintf(tabWriter, " %s:\t%s\n", "format", `Clone the repository as an archive. Valid options: "tar.gz", "tar.bz2", "tbz", "tbz2", "tb2", "bz2", "tar", "zip"`) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters