🐛 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:
Auca Coyan 2024-02-22 11:19:55 -08:00 committed by GitHub
parent 144f3fefde
commit 6309a9f29b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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