You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve CLI UX across stdout/stderr channels, TTY errors, help text, and docs (#29)
- Move all progress/status messages (Fetching, Checking, Converting,
auto-detect) from stdout to stderr for proper pipe composability
- Unify non-TTY error messages with branded format and how-to-fix guidance
via new require_tty() helper in interactive.rs
- Add is_tty() guards to create and presets install before interactive prompts
- Move presets install TTY check before network fetch to avoid wasteful requests
- Add Examples section to --help via clap after_help
- Add long_about descriptions to all subcommands (update, apply, create,
presets list, presets install)
- Warn when --editor/--target flags are used with subcommands that ignore them
- Update README.md and README.ko.md: add OpenCode/iTerm2 editors,
OpenCode/Obsidian/iTerm2 targets, fix theme store path, update usage example
- Bump version to 0.10.1
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
chromaport -e vscode -t ghostty Import VS Code theme to Ghostty
13
+
chromaport apply Apply a saved theme to new targets
14
+
chromaport create Create a custom theme with color picker
15
+
chromaport presets list Browse available preset themes
16
+
chromaport presets install Install preset themes"
9
17
)]
10
18
pubstructCli{
11
19
/// Print version
@@ -27,14 +35,23 @@ pub struct Cli {
27
35
#[derive(Subcommand)]
28
36
pubenumCommand{
29
37
/// Check for updates and upgrade chromaport
38
+
#[command(
39
+
long_about = "Check for updates and upgrade chromaport.\n\nChecks GitHub releases for new versions and auto-detects your install method\n(Homebrew or Cargo) to run the appropriate upgrade command.\nUse -y to skip the confirmation prompt."
40
+
)]
30
41
Update{
31
42
/// Skip confirmation prompt
32
43
#[arg(short = 'y', long)]
33
44
yes:bool,
34
45
},
35
46
/// Apply a saved theme to additional targets
47
+
#[command(
48
+
long_about = "Apply a saved theme to additional targets.\n\nOpens a TUI preview to select from themes saved in ~/chromaport/themes/,\nthen lets you choose which target apps to apply the theme to."
49
+
)]
36
50
Apply,
37
51
/// Create a custom theme from scratch
52
+
#[command(
53
+
long_about = "Create a custom theme from scratch.\n\nOpens an interactive color picker (HSL sliders + hex input) to choose\nbackground, foreground, and accent colors. A full palette is automatically\nderived from your 3 base colors."
54
+
)]
38
55
Create,
39
56
/// Manage preset themes
40
57
Presets{
@@ -46,8 +63,14 @@ pub enum Command {
46
63
#[derive(Subcommand)]
47
64
pubenumPresetsAction{
48
65
/// List available preset themes
66
+
#[command(
67
+
long_about = "List available preset themes.\n\nFetches the preset catalog from GitHub and displays each theme's name,\nauthor, license, and install status."
68
+
)]
49
69
List,
50
70
/// Install preset themes
71
+
#[command(
72
+
long_about = "Install preset themes.\n\nFetches available presets from GitHub and opens a multi-select prompt\nto choose which themes to download and save locally."
0 commit comments