Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

feat: Rename `config list` to `config show` and enhance shell integration

Maximilian Roos73138958f64d
diff --git a/README.md b/README.md
index d1019fcce..2a1af693a 100644
--- a/README.md
+++ b/README.md
@@ -802,7 +802,7 @@ Usage: config <COMMAND>
Commands:
shell Shell integration setup
create Create global configuration file
- list List configuration files & locations
+ show Show configuration files & locations
refresh-cache Refresh default branch from remote
status Manage branch status markers
approvals Manage command approvals
@@ -863,7 +863,7 @@ For OpenAI:
llm keys set openai
```
-Use `wt config list` to view your current configuration.
+Use `wt config show` to view your current configuration.
Docs: <https://llm.datasette.io/> | <https://github.com/sigoden/aichat>
## Configuration Files
diff --git a/src/cli.rs b/src/cli.rs
index 4f1db11b6..d0d621158 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -298,14 +298,14 @@ pub enum ConfigCommand {
)]
Create,
- /// List configuration files & locations
+ /// Show configuration files & locations
#[command(
after_long_help = r#"Shows location and contents of global config (`~/.config/worktrunk/config.toml`)
and project config (`.config/wt.toml`).
If a config file doesn't exist, shows defaults that would be used."#
)]
- List,
+ Show,
/// Refresh default branch from remote
#[command(
@@ -577,7 +577,7 @@ For OpenAI:
llm keys set openai
```
-Use `wt config list` to view your current configuration.
+Use `wt config show` to view your current configuration.
Docs: <https://llm.datasette.io/> | <https://github.com/sigoden/aichat>
## Configuration Files
diff --git a/src/commands/config.rs b/src/commands/config.rs
index efe9e58ea..817858df7 100644
--- a/src/commands/config.rs
+++ b/src/commands/config.rs
@@ -3,11 +3,14 @@ use etcetera::base_strategy::{BaseStrategy, choose_base_strategy};
use std::path::PathBuf;
use worktrunk::git::{Repository, detached_head};
use worktrunk::path::format_path_for_display;
+use worktrunk::shell::Shell;
use worktrunk::styling::{
AnstyleStyle, CYAN, GREEN, GREEN_BOLD, HINT, HINT_EMOJI, INFO_EMOJI, SUCCESS_EMOJI,
format_toml, print, println,
};
+use super::configure_shell::{ConfigAction, process_shell_completions, scan_shell_configs};
+
/// Example configuration file content (displayed in help with values uncommented)
const CONFIG_EXAMPLE: &str = include_str!("../../dev/config.example.toml");
@@ -47,7 +50,7 @@ pub fn handle_config_create() -> anyhow::Result<()> {
format_path_for_display(&config_path)
);
println!();
- println!("{HINT_EMOJI} {HINT}Use 'wt config list' to view existing configuration{HINT:#}");
+ println!("{HINT_EMOJI} {HINT}Use 'wt config show' to view existing configuration{HINT:#}");
println!(
"{HINT_EMOJI} {HINT}Use 'wt config create --help' for config format reference{HINT:#}"
);
@@ -78,14 +81,18 @@ pub fn handle_config_create() -> anyhow::Result<()> {
Ok(())
}
-/// Handle the config list command
-pub fn handle_config_list() -> anyhow::Result<()> {
+/// Handle the config show command
+pub fn handle_config_show() -> anyhow::Result<()> {
// Display global config
display_global_config()?;
println!();
// Display project config if in a git repository
display_project_config()?;
+ println!();
+
+ // Display shell integration status
+ display_shell_status()?;
Ok(())
}
@@ -167,6 +174,136 @@ fn display_project_config() -> anyhow::Result<()> {
Ok(())
}
+fn display_shell_status() -> anyhow::Result<()> {
+ use worktrunk::styling::{WARNING, WARNING_EMOJI, format_with_gutter};
+
+ let bold = AnstyleStyle::new().bold();
+ let dim = AnstyleStyle::new().dimmed();
+
+ // Use the same detection logic as `wt config shell install`
+ let scan_result = match scan_shell_configs(None, true) {
+ Ok(r) => r,
+ Err(e) => {
+ println!("{HINT_EMOJI} {HINT}Could not determine shell status: {e}{HINT:#}");
+ return Ok(());
+ }
+ };
+
+ // Get completion status for fish (bash/zsh completions are inline in init script)
+ let shells: Vec<_> = scan_result.configured.iter().map(|r| r.shell).collect();
+ let completion_results = process_shell_completions(&shells, true).unwrap_or_default();
+
+ let mut any_configured = false;
+ let mut any_not_configured = false;
+
+ // Show configured and not-configured shells (matching `config shell install` format exactly)
+ for result in &scan_result.configured {
+ let shell = result.shell;
+ let path = format_path_for_display(&result.path);
+ // Match the format from `wt config shell install`
+ let what = if matches!(shell, Shell::Bash | Shell::Zsh) {
+ "shell extension & completions"
+ } else {
+ "shell extension"
+ };
+
+ match result.action {
+ ConfigAction::AlreadyExists => {
+ any_configured = true;
+ println!(
+ "{INFO_EMOJI} Already configured {what} for {bold}{shell}{bold:#} @ {path}"
+ );
+
+ // Check if zsh has compinit enabled (required for completions)
+ if matches!(shell, Shell::Zsh) && check_zsh_compinit_missing() {
+ println!(
+ "{WARNING_EMOJI} {WARNING}Completions won't work; add to ~/.zshrc before the wt line:{WARNING:#}"
+ );
+ print!(
+ "{}",
+ format_with_gutter("autoload -Uz compinit && compinit", "", None)
+ );
+ }
+ }
+ ConfigAction::WouldAdd | ConfigAction::WouldCreate => {
+ any_not_configured = true;
+ println!(
+ "{HINT_EMOJI} {HINT}Not configured {what} for {bold}{shell}{bold:#} @ {path}{HINT:#}"
+ );
+ }
+ _ => {} // Added/Created won't appear in dry_run mode
+ }
+ }
+
+ // Show fish completions separately (fish has separate completion files)
+ for result in &completion_results {
+ let shell = result.shell;
+ let path = format_path_for_display(&result.path);
+
+ match result.action {
+ ConfigAction::AlreadyExists => {
+ any_configured = true;
+ println!(
+ "{INFO_EMOJI} Already configured completions for {bold}{shell}{bold:#} @ {path}"
+ );
+ }
+ ConfigAction::WouldAdd | ConfigAction::WouldCreate => {
+ any_not_configured = true;
+ println!(
+ "{HINT_EMOJI} {HINT}Not configured completions for {bold}{shell}{bold:#} @ {path}{HINT:#}"
+ );
+ }
+ _ => {}
+ }
+ }
+
+ // Show skipped (not installed) shells
+ for (shell, path) in &scan_result.skipped {
+ let path = format_path_for_display(path);
+ println!("{dim}⚪ Skipped {shell}; {path} not found{dim:#}");
+ }
+
+ // Summary hint
+ if any_not_configured && !any_configured {
+ println!();
+ println!(
+ "{HINT_EMOJI} {HINT}Run 'wt config shell install' to enable shell integration{HINT:#}"
+ );
+ }
+
+ Ok(())
+}
+
+/// Check if zsh has compinit enabled by spawning an interactive shell
+///
+/// Returns true if compinit is NOT enabled (i.e., user needs to add it).
+/// Returns false if compinit is enabled or we can't determine (fail-safe: don't warn).
+fn check_zsh_compinit_missing() -> bool {
+ use std::process::{Command, Stdio};
+
+ // Probe zsh to check if compdef function exists (indicates compinit has run)
+ // Use --no-globalrcs to skip system files (like /etc/zshrc on macOS which enables compinit)
+ // This ensures we're checking the USER's configuration, not system defaults
+ // Suppress stderr to avoid noise like "can't change option: zle"
+ let output = Command::new("zsh")
+ .args([
+ "--no-globalrcs",
+ "-ic",
+ r#"(( $+functions[compdef] )) && echo "__WT_COMPINIT_YES__" || echo "__WT_COMPINIT_NO__""#,
+ ])
+ .stderr(Stdio::null())
+ .output()
+ .ok();
+
+ match output {
+ Some(out) => {
+ let stdout = String::from_utf8_lossy(&out.stdout);
+ stdout.contains("__WT_COMPINIT_NO__")
+ }
+ None => false, // Can't determine, don't warn
+ }
+}
+
fn get_global_config_path() -> Option<PathBuf> {
// Respect XDG_CONFIG_HOME environment variable for testing (Linux)
if let Ok(xdg_config) = std::env::var("XDG_CONFIG_HOME") {
diff --git a/src/commands/configure_shell.rs b/src/commands/configure_shell.rs
index 1b3da76be..2445ee242 100644
--- a/src/commands/configure_shell.rs
+++ b/src/commands/configure_shell.rs
@@ -191,7 +191,10 @@ pub fn handle_configure_shell(
})
}
-fn scan_shell_configs(shell_filter: Option<Shell>, dry_run: bool) -> Result<ScanResult, String> {
+pub fn scan_shell_configs(
+ shell_filter: Option<Shell>,
+ dry_run: bool,
+) -> Result<ScanResult, String> {
let shells = if let Some(shell) = shell_filter {
vec![shell]
} else {
@@ -564,7 +567,7 @@ fn prompt_yes_no() -> Result<bool, String> {
/// Note: Bash and Zsh completions are handled via lazy loading in the init script,
/// so we only write static completion files for Fish (which uses native lazy loading
/// from ~/.config/fish/completions/).
-fn process_shell_completions(
+pub fn process_shell_completions(
shells: &[Shell],
dry_run: bool,
) -> Result<Vec<CompletionResult>, String> {
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index 148c8ab88..5271a99fb 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -18,7 +18,7 @@ pub mod statusline;
pub mod worktree;
pub use config::{
- handle_config_create, handle_config_list, handle_config_refresh_cache,
+ handle_config_create, handle_config_refresh_cache, handle_config_show,
handle_config_status_set, handle_config_status_unset,
};
pub use configure_shell::{ConfigAction, handle_configure_shell, handle_unconfigure_shell};
diff --git a/src/main.rs b/src/main.rs
index 6bcc382c7..b1897db87 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -24,8 +24,8 @@ use commands::command_executor::CommandContext;
use commands::handle_select;
use commands::worktree::{SwitchResult, handle_push};
use commands::{
- ConfigAction, RebaseResult, handle_config_create, handle_config_list,
- handle_config_refresh_cache, handle_config_status_set, handle_config_status_unset,
+ ConfigAction, RebaseResult, handle_config_create, handle_config_refresh_cache,
+ handle_config_show, handle_config_status_set, handle_config_status_unset,
handle_configure_shell, handle_init, handle_list, handle_merge, handle_rebase, handle_remove,
handle_squash, handle_standalone_ask_approvals, handle_standalone_clear_approvals,
handle_standalone_commit, handle_standalone_run_hook, handle_switch, handle_unconfigure_shell,
@@ -483,7 +483,7 @@ fn main() {
}
}
ConfigCommand::Create => handle_config_create(),
- ConfigCommand::List => handle_config_list(),
+ ConfigCommand::Show => handle_config_show(),
ConfigCommand::RefreshCache => handle_config_refresh_cache(),
ConfigCommand::Status { action } => match action {
StatusAction::Set { value, branch } => handle_config_status_set(value, branch),
diff --git a/tests/integration_tests/config_init.rs b/tests/integration_tests/config_init.rs
index 3276e8691..0759c874f 100644
--- a/tests/integration_tests/config_init.rs
+++ b/tests/integration_tests/config_init.rs
@@ -30,7 +30,7 @@ fn test_config_init_already_exists() {
----- stdout -----
⚪ Global config already exists: ~/.config/worktrunk/config.toml
- 💡 Use 'wt config list' to view existing configuration
+ 💡 Use 'wt config show' to view existing configuration
💡 Use 'wt config create --help' for config format reference
----- stderr -----
diff --git a/tests/integration_tests/config_list.rs b/tests/integration_tests/config_show.rs
similarity index 56%
rename from tests/integration_tests/config_list.rs
rename to tests/integration_tests/config_show.rs
index a0d02823f..0a514adc0 100644
--- a/tests/integration_tests/config_list.rs
+++ b/tests/integration_tests/config_show.rs
@@ -6,9 +6,9 @@ use insta_cmd::assert_cmd_snapshot;
use std::fs;
use tempfile::TempDir;
-/// Test `wt config list` with both global and project configs present
+/// Test `wt config show` with both global and project configs present
#[test]
-fn test_config_list_with_project_config() {
+fn test_config_show_with_project_config() {
let repo = TestRepo::new();
let temp_home = TempDir::new().unwrap();
@@ -43,7 +43,7 @@ server = "npm run dev"
settings.bind(|| {
let mut cmd = wt_command();
repo.clean_cli_env(&mut cmd);
- cmd.arg("config").arg("list").current_dir(repo.root_path());
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
set_temp_home_env(&mut cmd, temp_home.path());
assert_cmd_snapshot!(cmd, @r#"
@@ -63,14 +63,18 @@ server = "npm run dev"
  [post-start]
  server = "npm run dev"
+ ⚪ Skipped bash; ~/.bashrc not found
+ ⚪ Skipped zsh; ~/.zshrc not found
+ ⚪ Skipped fish; ~/.config/fish/conf.d not found
+
----- stderr -----
"#);
});
}
-/// Test `wt config list` when there is no project config
+/// Test `wt config show` when there is no project config
#[test]
-fn test_config_list_no_project_config() {
+fn test_config_show_no_project_config() {
let repo = TestRepo::new();
let temp_home = TempDir::new().unwrap();
@@ -88,7 +92,7 @@ fn test_config_list_no_project_config() {
settings.bind(|| {
let mut cmd = wt_command();
repo.clean_cli_env(&mut cmd);
- cmd.arg("config").arg("list").current_dir(repo.root_path());
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
set_temp_home_env(&mut cmd, temp_home.path());
assert_cmd_snapshot!(cmd, @r#"
@@ -101,14 +105,18 @@ fn test_config_list_no_project_config() {
⚪ Project Config: [REPO]/.config/wt.toml
💡 Not found
+ ⚪ Skipped bash; ~/.bashrc not found
+ ⚪ Skipped zsh; ~/.zshrc not found
+ ⚪ Skipped fish; ~/.config/fish/conf.d not found
+
----- stderr -----
"#);
});
}
-/// Test `wt config list` outside a git repository
+/// Test `wt config show` outside a git repository
#[test]
-fn test_config_list_outside_git_repo() {
+fn test_config_show_outside_git_repo() {
let temp_dir = tempfile::tempdir().unwrap();
let temp_home = TempDir::new().unwrap();
@@ -125,7 +133,7 @@ fn test_config_list_outside_git_repo() {
let settings = setup_home_snapshot_settings(&temp_home);
settings.bind(|| {
let mut cmd = wt_command();
- cmd.arg("config").arg("list").current_dir(temp_dir.path());
+ cmd.arg("config").arg("show").current_dir(temp_dir.path());
set_temp_home_env(&mut cmd, temp_home.path());
assert_cmd_snapshot!(cmd, @r#"
@@ -137,7 +145,76 @@ fn test_config_list_outside_git_repo() {
⚪ Project Config: Not in a git repository
+ ⚪ Skipped bash; ~/.bashrc not found
+ ⚪ Skipped zsh; ~/.zshrc not found
+ ⚪ Skipped fish; ~/.config/fish/conf.d not found
+
----- stderr -----
"#);
});
}
+
+/// Test `wt config show` warns when zsh compinit is not enabled
+#[test]
+fn test_config_show_zsh_compinit_warning() {
+ let repo = TestRepo::new();
+ let temp_home = TempDir::new().unwrap();
+
+ // Create global config
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ fs::write(global_config_dir.join("config.toml"), "").unwrap();
+
+ // Create .zshrc WITHOUT compinit - completions won't work
+ fs::write(
+ temp_home.path().join(".zshrc"),
+ r#"# wt integration but no compinit!
+if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi
+"#,
+ )
+ .unwrap();
+
+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);
+ settings.bind(|| {
+ let mut cmd = wt_command();
+ repo.clean_cli_env(&mut cmd);
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+
+ assert_cmd_snapshot!(cmd);
+ });
+}
+
+/// Test `wt config show` shows no warning when zsh compinit is enabled
+#[test]
+fn test_config_show_zsh_compinit_correct_order() {
+ let repo = TestRepo::new();
+ let temp_home = TempDir::new().unwrap();
+
+ // Create global config
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ fs::write(global_config_dir.join("config.toml"), "").unwrap();
+
+ // Create .zshrc with compinit enabled - completions will work
+ fs::write(
+ temp_home.path().join(".zshrc"),
+ r#"# compinit enabled
+autoload -Uz compinit && compinit
+
+# wt integration
+if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi
+"#,
+ )
+ .unwrap();
+
+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);
+ settings.bind(|| {
+ let mut cmd = wt_command();
+ repo.clean_cli_env(&mut cmd);
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+
+ assert_cmd_snapshot!(cmd);
+ });
+}
diff --git a/tests/integration_tests/help.rs b/tests/integration_tests/help.rs
index fbed9f634..ddfa02b86 100644
--- a/tests/integration_tests/help.rs
+++ b/tests/integration_tests/help.rs
@@ -63,8 +63,8 @@ fn help_config_create() {
}
#[test]
-fn help_config_list() {
- snapshot_help("help_config_list", &["config", "list", "--help"]);
+fn help_config_show() {
+ snapshot_help("help_config_show", &["config", "show", "--help"]);
}
#[test]
diff --git a/tests/integration_tests/internal_flag.rs b/tests/integration_tests/internal_flag.rs
index 3774acb8d..7e6823350 100644
--- a/tests/integration_tests/internal_flag.rs
+++ b/tests/integration_tests/internal_flag.rs
@@ -40,11 +40,11 @@ fn test_list_with_internal_flag() {
});
}
-/// Test that `config list` command works with --internal flag
+/// Test that `config show` command works with --internal flag
///
-/// Config list doesn't emit directives, but should work fine with --internal.
+/// Config show doesn't emit directives, but should work fine with --internal.
#[test]
-fn test_config_list_with_internal_flag() {
+fn test_config_show_with_internal_flag() {
let repo = TestRepo::new();
repo.commit("Initial commit");
let temp_home = TempDir::new().unwrap();
@@ -66,7 +66,7 @@ fn test_config_list_with_internal_flag() {
set_temp_home_env(&mut cmd, temp_home.path());
cmd.arg("--internal")
.arg("config")
- .arg("list")
+ .arg("show")
.current_dir(repo.root_path());
assert_cmd_snapshot!(cmd);
diff --git a/tests/integration_tests/mod.rs b/tests/integration_tests/mod.rs
index 935006efa..c4fb9fbee 100644
--- a/tests/integration_tests/mod.rs
+++ b/tests/integration_tests/mod.rs
@@ -12,7 +12,7 @@ pub mod column_alignment_verification;
pub mod completion;
pub mod completion_validation;
pub mod config_init;
-pub mod config_list;
+pub mod config_show;
pub mod config_status;
pub mod configure_shell;
pub mod default_branch;
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
new file mode 100644
index 000000000..14af70890
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
@@ -0,0 +1,36 @@
+---
+source: tests/integration_tests/config_show.rs
+info:
+ program: wt
+ args:
+ - config
+ - show
+ env:
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "150"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ SOURCE_DATE_EPOCH: "1761609600"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+⚪ Global Config: ~/.config/worktrunk/config.toml
+💡 Empty file (using defaults)
+
+⚪ Project Config: [REPO]/.config/wt.toml
+💡 Not found
+
+⚪ Already configured shell extension & completions for zsh @ ~/.zshrc
+⚪ Skipped bash; ~/.bashrc not found
+⚪ Skipped fish; ~/.config/fish/conf.d not found
+
+----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
new file mode 100644
index 000000000..a524802d0
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
@@ -0,0 +1,38 @@
+---
+source: tests/integration_tests/config_show.rs
+info:
+ program: wt
+ args:
+ - config
+ - show
+ env:
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "150"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ SOURCE_DATE_EPOCH: "1761609600"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+⚪ Global Config: ~/.config/worktrunk/config.toml
+💡 Empty file (using defaults)
+
+⚪ Project Config: [REPO]/.config/wt.toml
+💡 Not found
+
+⚪ Already configured shell extension & completions for zsh @ ~/.zshrc
+🟡 Completions won't work; add to ~/.zshrc before the wt line:
+  autoload -Uz compinit && compinit
+⚪ Skipped bash; ~/.bashrc not found
+⚪ Skipped fish; ~/.config/fish/conf.d not found
+
+----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__help__help_config.snap b/tests/snapshots/integration__integration_tests__help__help_config.snap
index fbeeba77e..d526ec296 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config.snap
@@ -20,7 +20,7 @@ Usage: wt config [OPTIONS] <COMMAND>
Commands:
shell Shell integration setup
create Create global configuration file
- list List configuration files & locations
+ show Show configuration files & locations
refresh-cache Refresh default branch from remote
status Manage branch status markers
approvals Manage command approvals
@@ -76,7 +76,7 @@ For OpenAI:
llm keys set openai
-Use wt config list to view your current configuration.
+Use wt config show to view your current configuration.
Docs: <https://llm.datasette.io/> | <https://github.com/sigoden/aichat>
Configuration Files
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_list.snap b/tests/snapshots/integration__integration_tests__help__help_config_show.snap
similarity index 88%
rename from tests/snapshots/integration__integration_tests__help__help_config_list.snap
rename to tests/snapshots/integration__integration_tests__help__help_config_show.snap
index c376eaf4f..6023e25f1 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_list.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_show.snap
@@ -4,7 +4,7 @@ info:
program: wt
args:
- config
- - list
+ - show
- "--help"
env:
CLICOLOR_FORCE: "1"
@@ -15,8 +15,8 @@ info:
success: true
exit_code: 0
----- stdout -----
-wt config list - List configuration files & locations
-Usage: wt config list [OPTIONS]
+wt config show - Show configuration files & locations
+Usage: wt config show [OPTIONS]
Options:
-h, --help
diff --git a/tests/snapshots/integration__integration_tests__internal_flag__config_list_with_internal_flag.snap b/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap
similarity index 83%
rename from tests/snapshots/integration__integration_tests__internal_flag__config_list_with_internal_flag.snap
rename to tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap
index dce98f97f..ef6a034df 100644
--- a/tests/snapshots/integration__integration_tests__internal_flag__config_list_with_internal_flag.snap
+++ b/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap
@@ -5,7 +5,7 @@ info:
args:
- "--internal"
- config
- - list
+ - show
env:
CLICOLOR_FORCE: "1"
COLUMNS: "150"
@@ -30,4 +30,8 @@ exit_code: 0
⚪ Project Config: [REPO]/.config/wt.toml
💡 Not found
+⚪ Skipped bash; ~/.bashrc not found
+⚪ Skipped zsh; ~/.zshrc not found
+⚪ Skipped fish; ~/.config/fish/conf.d not found
+
----- stderr -----