upskill 0.3.0

Author and distribute AI-assistance content across coding agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Verify CLI error output is plain text with no ANSI escapes when
//! `NO_COLOR` is set, so CI logs and pipes stay readable.

use assert_cmd::Command;
use tempfile::tempdir;

#[test]
fn no_color_produces_plain_error_output() {
    let cwd = tempdir().expect("must create temp dir");
    let mut cmd = Command::cargo_bin("upskill").expect("binary exists");

    cmd.current_dir(cwd.path())
        .env("NO_COLOR", "1")
        .args(["add", "not-a-valid-source"])
        .assert()
        .code(2)
        .stderr("error: source must be in owner/repo format\n");
}