mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
🐛 fix optional args when doing gh repo create and gh repo fork (#763)
Hi! I found another bug, if you write ```bash $ gh repo create ``` it leads you to a series of prompts, but the current nu script throws an error. I fixed that and `gh repo fork` too, in which you don't necessarily need an argument.
This commit is contained in:
parent
144f3fefde
commit
6309a9f29b
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ def "nu-complete licenses list" [] {
|
|||
}
|
||||
|
||||
export extern "gh repo create" [
|
||||
repo_name: string
|
||||
repo_name?: string
|
||||
--help # Show help for command
|
||||
--add-readme # Add a README file to the new repository
|
||||
--clone(-c) # Clone the new repository to the current directory
|
||||
|
@ -209,7 +209,7 @@ export extern "gh repo create" [
|
|||
]
|
||||
|
||||
export extern "gh repo fork" [
|
||||
repo: string
|
||||
repo?: string
|
||||
--clone # Clone the fork
|
||||
--default-branch-only # Only include the default branch in the fork
|
||||
--fork-name: string # Rename the forked repository
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue