mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03: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
@ -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…
Reference in New Issue
Block a user