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

简化命令行 #65

Open
mikck opened this issue Sep 18, 2024 · 1 comment
Open

简化命令行 #65

mikck opened this issue Sep 18, 2024 · 1 comment

Comments

@mikck
Copy link

mikck commented Sep 18, 2024

你好,这是一个非常好的项目,之后是否考虑将生成代码的命令行入参从项目的配置文件内读取,例如db-driver和dsn;将会使得命令行更加简洁。
sponge web handler --module-name=user --db-driver=mysql --db-dsn="root:123456@(192.168.3.37:3306)/school" --db-table=cause,teach
这么长的命令行显得有点臃肿

@zhufuyi
Copy link
Owner

zhufuyi commented Sep 19, 2024

暂时没有计划使用配置文件来生成代码,现在在页面UI生成代码足够简单,其实也可以简化参数名方式 sponge web handler -m user -k mysql -d "root:123456@(192.168.3.37:3306)/school" -t course,teach

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

No branches or pull requests

2 participants