devalang 0.1.9

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
#![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 = entry
            .map(PathBuf::from)
            .unwrap_or_else(|| std::env::current_dir().expect("current dir"));
        Ok(path)
    }
}