cliclack_yaml 0.1.1

A YAML-based configuration layer for cliclack interactive CLI prompts
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::collections::HashMap;
use anyhow::Result;
use crate::PromptStepType;

/// Handle ClearScreen prompt step
pub fn handle_clear_screen(step_type: &PromptStepType, _context: &mut HashMap<String, String>) -> Result<()> {
    if let PromptStepType::ClearScreen = step_type {
        cliclack::clear_screen()?;
    }
    Ok(())
}