pub fn args(matches: &ArgMatches) -> Result<(), ProcessError>Expand description
Processes CLI arguments and executes the corresponding site compilation workflow.
This function performs the following steps:
- Retrieves required directory paths from command-line arguments.
- Ensures each directory exists, creating it if necessary.
- Calls the compilation service to generate the static site.
§Arguments
matches- Parsed command-line arguments fromclap.
§Returns
Result<(), ProcessError>- ReturnsOkon successful completion, or an error if a problem occurs.
§Errors
- Returns
ProcessError::MissingArgumentif a required argument is not provided. - Returns
ProcessError::DirectoryCreationif a directory cannot be created. - Returns
ProcessError::CompilationErrorif the site fails to compile.