Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Files

Latest commit

1fc7da0 · Jul 4, 2021

History

History
33 lines (20 loc) · 780 Bytes

command-destroy.md

File metadata and controls

33 lines (20 loc) · 780 Bytes

destroy

Removes a Rust module created with the create command and its corresponding files in the library and Godot project.

This will remove the *.rs file for the module, remove it from the lib.rs automatically, and remove the *.gdns file for it in Godot.

Note: This command has to be run within the library directory and will fail outside of it.

Usage

godot-rust-cli destroy <module_name>

where:

  • module_name is the name of the module to remove. This should be the same name used when the module was created with the create command.

Examples:

  • Destroying a module named "Player":
godot-rust-cli destroy Player
  • Destroying a module named "MainScene":
godot-rust-cli destroy MainScene

Back to top