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

cmd/gf: When initing the project, it is expected that the parameters can be passed directly to the github project address. #3941

Open
wangle201210 opened this issue Nov 20, 2024 · 2 comments
Labels
discuss We need discuss to make decision. enhancement

Comments

@wangle201210
Copy link
Member

Description

期望 gf init github.com/wanna/demo 能等效gf init -g github.com/wanna/demo demo

Additional

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Description

It is expected that gf init github.com/wanna/demo can be equivalent to gf init -g github.com/wanna/demo demo

Additional

No response

@Issues-translate-bot Issues-translate-bot changed the title cmd/gf: init项目时入参期望可以直接传入github的项目地址 cmd/gf: When initing the project, it is expected that the parameters can be passed directly to the github project address. Nov 20, 2024
@gqcn
Copy link
Member

gqcn commented Nov 23, 2024

@wangle201210 When designing the gf init command, we referred more to the git init command rather than the go mod init command. As a result, the gf init command allows specifying the directory path of the project as a parameter, whereas go mod init does not. If we were to support the git init MODULE_NAME style, it would conflict with the current command design and lead to version incompatibility issues.

@gqcn gqcn added the discuss We need discuss to make decision. label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss We need discuss to make decision. enhancement
Projects
None yet
Development

No branches or pull requests

3 participants