nvy 1.1.7

A simple command line tool for managing multiple env files (profiles) in a project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::{anyhow, Result};

use crate::nvy_config::{does_config_exist, load_config, CONFIG_FILE_NAME};

pub fn run_config() -> Result<()> {
    if !does_config_exist() {
        return Err(anyhow!(
            "{} does not exist in the current directory, please run `nvy init` first.",
            CONFIG_FILE_NAME
        ));
    }

    let config = load_config()?;
    println!("{}", config);

    Ok(())
}