Skip to content
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

fix: [trivial] fix the error message if nothing is passed to ghq create #334

Merged
merged 1 commit into from
May 6, 2022

Conversation

gfx
Copy link
Contributor

@gfx gfx commented Mar 12, 2022

The behavior and error message on ghq create (with no args) doesn't make sense. I've never seen that message before, in fact, but found it in making the pull-req #333.

before:

$ ghq create
     error directory "/Users/goro-fuji/ghq/github.com/gfx" already exists and not empty

after:

$ ./ghq create
     error repository name is required

@gfx gfx changed the title [trivial] improve the error message if nothing is passed to ghq create fix: [trivial] improve the error message if nothing is passed to ghq create Mar 12, 2022
@gfx gfx changed the title fix: [trivial] improve the error message if nothing is passed to ghq create fix: [trivial] fix the error message if nothing is passed to ghq create Mar 12, 2022
@itchyny
Copy link
Contributor

itchyny commented Mar 30, 2022

Maybe it's more helpful if it suggests how to see the subcommand help, just like ghq get.

@gfx
Copy link
Contributor Author

gfx commented Apr 2, 2022

@itchyny

Sounds a good idea, but it should be a general improvement rather than this particular fix.

@Songmu Songmu merged commit 7558b69 into x-motemen:master May 6, 2022
Songmu added a commit that referenced this pull request May 6, 2022
## [v1.3.0](v1.2.1...v1.3.0) (2022-05-06)

* update deps [#342](#342) ([Songmu](https://github.com/Songmu))
* use go install instead of go get [#337](#337) ([shogo82148](https://github.com/shogo82148))
* Simplify repository lock using sync.Map [#339](#339) ([itchyny](https://github.com/itchyny))
* bump Go 1.18 [#338](#338) ([shogo82148](https://github.com/shogo82148))
* bump the actions that run on Node.js 16 runtime [#336](#336) ([shogo82148](https://github.com/shogo82148))
* fix: [trivial] fix the error message if nothing is passed to `ghq create` [#334](#334) ([gfx](https://github.com/gfx))
* feat: do a bare clone [#328](#328) ([helmecke](https://github.com/helmecke))
* update installation go [#327](#327) ([isanasan](https://github.com/isanasan))
* avoid using "Japanese Only" [#325](#325) ([shogo82148](https://github.com/shogo82148))
@gfx
Copy link
Contributor Author

gfx commented May 9, 2022

Thank you!

@gfx gfx deleted the gfx/fix_error_msg_in_create branch May 9, 2022 05:59
YuriSalesquw added a commit to YuriSalesquw/ghq that referenced this pull request Dec 26, 2022
## [v1.3.0](x-motemen/ghq@v1.2.1...v1.3.0) (2022-05-06)

* update deps [#342](x-motemen/ghq#342) ([Songmu](https://github.com/Songmu))
* use go install instead of go get [#337](x-motemen/ghq#337) ([shogo82148](https://github.com/shogo82148))
* Simplify repository lock using sync.Map [#339](x-motemen/ghq#339) ([itchyny](https://github.com/itchyny))
* bump Go 1.18 [#338](x-motemen/ghq#338) ([shogo82148](https://github.com/shogo82148))
* bump the actions that run on Node.js 16 runtime [#336](x-motemen/ghq#336) ([shogo82148](https://github.com/shogo82148))
* fix: [trivial] fix the error message if nothing is passed to `ghq create` [#334](x-motemen/ghq#334) ([gfx](https://github.com/gfx))
* feat: do a bare clone [#328](x-motemen/ghq#328) ([helmecke](https://github.com/helmecke))
* update installation go [#327](x-motemen/ghq#327) ([isanasan](https://github.com/isanasan))
* avoid using "Japanese Only" [#325](x-motemen/ghq#325) ([shogo82148](https://github.com/shogo82148))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants