-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Unify use of tab indent in non-test source files #9407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,7 +88,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co | |
| To create a remote repository non-interactively, supply the repository name and one of %[1]s--public%[1]s, %[1]s--private%[1]s, or %[1]s--internal%[1]s. | ||
| Pass %[1]s--clone%[1]s to clone the new repository locally. | ||
|
|
||
| If the %[1]sOWNER/%[1]s portion of the %[1]sOWNER/REPO%[1]s name argument is omitted, it | ||
| If the %[1]sOWNER/%[1]s portion of the %[1]sOWNER/REPO%[1]s name argument is omitted, it | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π andyfeller@Andys-MBP:cli/cli βΉtab-indentsβΊ$ gh repo create --help
Create a new GitHub repository.
To create a repository interactively, use `gh repo create` with no arguments.
To create a remote repository non-interactively, supply the repository name and one of `--public`, `--private`, or `--internal`.
Pass `--clone` to clone the new repository locally.
If the `OWNER/` portion of the `OWNER/REPO` name argument is omitted, it
defaults to the name of the authenticating user.
To create a remote repository from an existing local repository, specify the source directory with `--source`.
By default, the remote repository name will be the name of the source directory.
Pass `--push` to push any local commits to the new repository.
USAGE
gh repo create [<name>] [flags]
ALIASES
gh repo new
FLAGS
--add-readme Add a README file to the new repository
-c, --clone Clone the new repository to the current directory
-d, --description string Description of the repository
--disable-issues Disable issues in the new repository
--disable-wiki Disable wiki in the new repository
-g, --gitignore string Specify a gitignore template for the repository
-h, --homepage URL Repository home page URL
--include-all-branches Include all branches from template repository
--internal Make the new repository internal
-l, --license string Specify an Open Source License for the repository
--private Make the new repository private
--public Make the new repository public
--push Push local commits to the new repository
-r, --remote string Specify remote name for the new repository
-s, --source string Specify path to local repository to use as source
-t, --team name The name of the organization team to be granted access
-p, --template repository Make the new repository based on a template repository
INHERITED FLAGS
--help Show help for command
EXAMPLES
# create a repository interactively
gh repo create
# create a new remote repository and clone it locally
gh repo create my-project --public --clone
# create a new remote repository in a different organization
gh repo create my-org/my-project --public
# create a remote repository from the current directory
gh repo create my-project --private --source=. --remote=upstream
LEARN MORE
Use `gh <command> <subcommand> --help` for more information about a command.
Read the manual at https://cli.github.com/manual
andyfeller@Andys-MBP:cli/cli βΉtab-indentsβΊ$ ./bin/gh repo create --help
Create a new GitHub repository.
To create a repository interactively, use `gh repo create` with no arguments.
To create a remote repository non-interactively, supply the repository name and one of `--public`, `--private`, or `--internal`.
Pass `--clone` to clone the new repository locally.
If the `OWNER/` portion of the `OWNER/REPO` name argument is omitted, it
defaults to the name of the authenticating user.
To create a remote repository from an existing local repository, specify the source directory with `--source`.
By default, the remote repository name will be the name of the source directory.
Pass `--push` to push any local commits to the new repository.
USAGE
gh repo create [<name>] [flags]
ALIASES
gh repo new
FLAGS
--add-readme Add a README file to the new repository
-c, --clone Clone the new repository to the current directory
-d, --description string Description of the repository
--disable-issues Disable issues in the new repository
--disable-wiki Disable wiki in the new repository
-g, --gitignore string Specify a gitignore template for the repository
-h, --homepage URL Repository home page URL
--include-all-branches Include all branches from template repository
--internal Make the new repository internal
-l, --license string Specify an Open Source License for the repository
--private Make the new repository private
--public Make the new repository public
--push Push local commits to the new repository
-r, --remote string Specify remote name for the new repository
-s, --source string Specify path to local repository to use as source
-t, --team name The name of the organization team to be granted access
-p, --template repository Make the new repository based on a template repository
INHERITED FLAGS
--help Show help for command
EXAMPLES
# create a repository interactively
gh repo create
# create a new remote repository and clone it locally
gh repo create my-project --public --clone
# create a new remote repository in a different organization
gh repo create my-org/my-project --public
# create a remote repository from the current directory
gh repo create my-project --private --source=. --remote=upstream
LEARN MORE
Use `gh <command> <subcommand> --help` for more information about a command.
Read the manual at https://cli.github.com/manual |
||
| defaults to the name of the authenticating user. | ||
|
|
||
| To create a remote repository from an existing local repository, specify the source directory with %[1]s--source%[1]s. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,18 +79,18 @@ func NewCmdRepoCredits(f *cmdutil.Factory, runF func(*CreditsOptions) error) *co | |
| Use: "credits [<repository>]", | ||
| Short: "View credits for a repository", | ||
| Example: heredoc.Doc(` | ||
| # view credits for the current repository | ||
| $ gh repo credits | ||
| # view credits for the current repository | ||
| $ gh repo credits | ||
|
|
||
| # view credits for a specific repository | ||
| $ gh repo credits cool/repo | ||
| # view credits for a specific repository | ||
| $ gh repo credits cool/repo | ||
|
|
||
| # print a non-animated thank you | ||
| $ gh repo credits -s | ||
| # print a non-animated thank you | ||
| $ gh repo credits -s | ||
|
|
||
| # pipe to just print the contributors, one per line | ||
| $ gh repo credits | cat | ||
| `), | ||
| # pipe to just print the contributors, one per line | ||
| $ gh repo credits | cat | ||
| `), | ||
|
Comment on lines
81
to
+93
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π change, no impact on rendering but improves code formatting |
||
| Args: cobra.MaximumNArgs(1), | ||
| RunE: func(cmd *cobra.Command, args []string) error { | ||
| if len(args) > 0 { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,17 +51,17 @@ func NewCmdDownload(f *cmdutil.Factory, runF func(*DownloadOptions) error) *cobr | |
| `), | ||
| Args: cobra.MaximumNArgs(1), | ||
| Example: heredoc.Doc(` | ||
| # Download all artifacts generated by a workflow run | ||
| $ gh run download <run-id> | ||
| # Download all artifacts generated by a workflow run | ||
| $ gh run download <run-id> | ||
|
|
||
| # Download a specific artifact within a run | ||
| $ gh run download <run-id> -n <name> | ||
| # Download a specific artifact within a run | ||
| $ gh run download <run-id> -n <name> | ||
|
|
||
| # Download specific artifacts across all runs in a repository | ||
| $ gh run download -n <name1> -n <name2> | ||
| # Download specific artifacts across all runs in a repository | ||
| $ gh run download -n <name1> -n <name2> | ||
|
|
||
| # Select artifacts to download interactively | ||
| $ gh run download | ||
| # Select artifacts to download interactively | ||
| $ gh run download | ||
|
Comment on lines
+54
to
+64
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π better code formatting, no impact on |
||
| `), | ||
| RunE: func(cmd *cobra.Command, args []string) error { | ||
| if len(args) > 0 { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparison of latest release versus changes:
Big improvement π