nestrs-cli-rs 0.1.0

Rust port of the Nest CLI for the nestrs organization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Upstream source: `../nest-cli/lib/schematics/custom.collection.ts`.

use std::path::Path;

pub type CollectionDescription = super::CollectionDescription;
pub type CollectionSchematic = super::CollectionSchematic;
pub type CustomCollection = super::CustomCollection;

pub fn from_path(path: impl AsRef<Path>) -> Result<CustomCollection, String> {
    super::CustomCollection::from_path(path)
}

pub fn from_package(
    package_name: &str,
    module_paths: impl IntoIterator<Item = impl AsRef<Path>>,
) -> Result<CustomCollection, String> {
    super::CustomCollection::from_package(package_name, module_paths)
}