devalang 0.2.0

Write music with code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg(feature = "cli")]

use anyhow::Result;
use std::path::{Path, PathBuf};

pub struct ProjectPaths;

impl ProjectPaths {
    pub fn resolve(entry: Option<&Path>) -> Result<PathBuf> {
        let path = match entry {
            Some(entry) => PathBuf::from(entry),
            None => std::env::current_dir()?,
        };
        Ok(path)
    }
}