zitadel-tui 0.1.7

A terminal UI for managing Zitadel resources
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Result;
use serde_json::Value;

use crate::{
    cli::{ConfigAction, ConfigCommand},
    config::AppConfig,
};

pub fn execute_config_command(command: &ConfigCommand, config: &AppConfig) -> Result<Value> {
    match command.action {
        ConfigAction::Show => Ok(serde_json::to_value(config)?),
    }
}