(
backend: BackendFramework,
resource_name: &str,
include_qsync_attr: bool,
)
| 697 | } |
| 698 | |
| 699 | pub fn create_resource( |
| 700 | backend: BackendFramework, |
| 701 | resource_name: &str, |
| 702 | include_qsync_attr: bool, |
| 703 | ) -> Result<()> { |
| 704 | let resource_name = resource_name.to_pascal_case(); |
| 705 | |
| 706 | logger::message(&format!("Creating resource '{resource_name}'")); |
| 707 | |
| 708 | crate::content::service::create( |
| 709 | backend, |
| 710 | &resource_name, |
| 711 | &format!("services::{}::api()", &resource_name), |
| 712 | &resource_name.to_snake_case(), |
| 713 | include_qsync_attr, |
| 714 | )?; |
| 715 | |
| 716 | Ok(()) |
| 717 | } |
| 718 | |
| 719 | pub fn check_cli_version() { |
| 720 | let name = env!("CARGO_PKG_NAME"); |
no test coverage detected