`glab repo create` has a horrible user-interface

This interface is nearly impossible to grok, for example,

given these two commands, only the former adds the remote.

cd foo
glab repo create;


glab repo create foo;

This seems like a bug to me. But it's in the code that way, https://gitlab.com/gitlab-org/cli/-/blob/main/commands/project/create/project_create.go#L113 When no args are supplied something different happens and isPath is set which adds the remote. Doesn't sound intentional to me.

Further, if NO_PROMPT is NOT set, and you rely on defaults (hitting enter) you'll get a different action then when NO_PROMPT is set. Worse yet, if you like the default when NO_PROMPT is NOT set it's not clear how you would get that without an interactive terminal. This could be fixed in the code for repo create or we could create a sane policy about NO_PROMPT to always just select defaults without having separate code paths (I opened up a separate issue here: #7488)

Edited by Evan Carroll