[英]Delete or undo Buffalo resource generation
I have generated a resource in Buffalo using the command: 我已经使用以下命令在布法罗生成了资源:
buffalo g resource <name> <flags>
I have realized I have made a mistake in this resource generation, how do I 我意识到我在此资源生成中犯了一个错误,我该如何
I do not see this in Buffalo's documentation or the buffalo g resource --help
message. 我在Buffalo的文档或buffalo g resource --help
消息中看不到这一点。
You could use the destroy cli, fortunately there is a destroy resource
command to help, you can do something like: 您可以使用destroy cli,幸运的是,有一个destroy resource
命令可以提供帮助,您可以执行以下操作:
buffalo d resource <name>
And it will guide you on which things to remove, or you could pass the --yes flag to simply remove all associated files. 并且它将指导您删除哪些内容,或者可以传递--yes标志以仅删除所有关联的文件。 pe: PE:
buffalo d resource <name> --yes
or 要么
buffalo d resource <name> -y
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.