Skip to content

Commit 53e224e

Browse files
authored
hides agent persistent subcommands and rewords deprecate messages (#2248)
* hides agent persistent subcommands and rewords deprecate messages * formatting
1 parent ddfc8ba commit 53e224e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

crates/chat-cli/src/cli/chat/cli/profile.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,19 @@ Notes
2727
• Each agent maintains its own set of context and customizations"
2828
)]
2929
pub enum AgentSubcommand {
30-
/// List all available profiles
30+
/// List all available agents
3131
List,
32-
/// Create a new profile with the specified name
32+
/// Create a new agent with the specified name
33+
#[command(hide = true)]
3334
Create { name: String },
34-
/// Delete the specified profile
35+
/// Delete the specified agent
36+
#[command(hide = true)]
3537
Delete { name: String },
36-
/// Switch to the specified profile
38+
/// Switch to the specified agent
39+
#[command(hide = true)]
3740
Set { name: String },
38-
/// Rename a profile
41+
/// Rename an agent
42+
#[command(hide = true)]
3943
Rename { old_name: String, new_name: String },
4044
}
4145

@@ -95,7 +99,7 @@ impl AgentSubcommand {
9599
session.stderr,
96100
style::SetForegroundColor(Color::Yellow),
97101
style::Print(format!(
98-
"Agent / Profile persistence has been disabled. To persist any changes on agent / profile, use the default agent under {} as example",
102+
"To make changes or create agents, please do so via create the corresponding config in {}, where you would also find an example config for your reference.\nTo switch agent, launch another instance of q chat with --agent.\n\n",
99103
global_path
100104
)),
101105
style::SetAttribute(Attribute::Reset)

0 commit comments

Comments
 (0)