fmt
This commit is contained in:
@@ -32,7 +32,9 @@ pub fn users_command_get(command_prefix: &str) -> String {
|
||||
}
|
||||
|
||||
pub fn users_command_set(command_prefix: &str) -> String {
|
||||
format!("- **Set** the list of allowed users: `{command_prefix} access set-users SPACE_SEPARATED_PATTERNS`")
|
||||
format!(
|
||||
"- **Set** the list of allowed users: `{command_prefix} access set-users SPACE_SEPARATED_PATTERNS`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn example_user_patterns(own_server_name: &str) -> String {
|
||||
@@ -64,7 +66,9 @@ pub fn room_local_agent_managers_heading() -> String {
|
||||
}
|
||||
|
||||
pub fn room_local_agent_managers_intro(command_prefix: &str) -> String {
|
||||
format!("Room-local agent managers are users privileged to **create their own agents** (see `{command_prefix} agent`) in rooms.")
|
||||
format!(
|
||||
"Room-local agent managers are users privileged to **create their own agents** (see `{command_prefix} agent`) in rooms."
|
||||
)
|
||||
}
|
||||
|
||||
pub fn room_local_agent_managers_security_warning() -> String {
|
||||
@@ -72,9 +76,13 @@ pub fn room_local_agent_managers_security_warning() -> String {
|
||||
}
|
||||
|
||||
pub fn room_local_agent_managers_command_get(command_prefix: &str) -> String {
|
||||
format!("- **Show** the currently allowed users: `{command_prefix} access room-local-agent-managers`")
|
||||
format!(
|
||||
"- **Show** the currently allowed users: `{command_prefix} access room-local-agent-managers`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn room_local_agent_managers_command_set(command_prefix: &str) -> String {
|
||||
format!("- **Set** the list of allowed users: `{command_prefix} access set-room-local-agent-managers SPACE_SEPARATED_PATTERNS`")
|
||||
format!(
|
||||
"- **Set** the list of allowed users: `{command_prefix} access set-room-local-agent-managers SPACE_SEPARATED_PATTERNS`"
|
||||
)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@ pub fn heading() -> String {
|
||||
}
|
||||
|
||||
pub fn intro(command_prefix: &str) -> String {
|
||||
format!("An agent is an instantiation and configuration of some **☁️ provider** (see `{command_prefix} provider`).")
|
||||
format!(
|
||||
"An agent is an instantiation and configuration of some **☁️ provider** (see `{command_prefix} provider`)."
|
||||
)
|
||||
}
|
||||
|
||||
pub fn intro_handler_relation(command_prefix: &str) -> String {
|
||||
@@ -25,7 +27,9 @@ pub fn list_agents(command_prefix: &str) -> String {
|
||||
}
|
||||
|
||||
pub fn show_agent_details(command_prefix: &str) -> String {
|
||||
format!("- **Show** full details for a given agent: `{command_prefix} agent details FULL_AGENT_IDENTIFIER`")
|
||||
format!(
|
||||
"- **Show** full details for a given agent: `{command_prefix} agent details FULL_AGENT_IDENTIFIER`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn create_agent_intro() -> &'static str {
|
||||
@@ -33,11 +37,15 @@ pub fn create_agent_intro() -> &'static str {
|
||||
}
|
||||
|
||||
pub fn create_agent_room_local(command_prefix: &str) -> String {
|
||||
format!("\t- (Accessible in **this room only**) `{command_prefix} agent create-room-local PROVIDER_ID AGENT_ID`")
|
||||
format!(
|
||||
"\t- (Accessible in **this room only**) `{command_prefix} agent create-room-local PROVIDER_ID AGENT_ID`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn create_agent_global(command_prefix: &str) -> String {
|
||||
format!("\t- (Accessible in **all rooms**) `{command_prefix} agent create-global PROVIDER_ID AGENT_ID`")
|
||||
format!(
|
||||
"\t- (Accessible in **all rooms**) `{command_prefix} agent create-global PROVIDER_ID AGENT_ID`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn create_agent_example(command_prefix: &str) -> String {
|
||||
|
||||
@@ -23,7 +23,9 @@ pub fn status_heading() -> String {
|
||||
}
|
||||
|
||||
pub fn status_intro(command_prefix: &str) -> String {
|
||||
format!("To **show a summary** of the configuration affecting the current room: `{command_prefix} config status`")
|
||||
format!(
|
||||
"To **show a summary** of the configuration affecting the current room: `{command_prefix} config status`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn handlers_heading() -> String {
|
||||
@@ -57,15 +59,21 @@ pub fn handlers_intro_purposes() -> String {
|
||||
}
|
||||
|
||||
pub fn handlers_show(command_prefix: &str) -> String {
|
||||
format!("**Show** the currently configured agent for the given purpose: `{command_prefix} config CONFIG_TYPE handler PURPOSE`")
|
||||
format!(
|
||||
"**Show** the currently configured agent for the given purpose: `{command_prefix} config CONFIG_TYPE handler PURPOSE`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn handlers_set(command_prefix: &str) -> String {
|
||||
format!("**Set** the agent to be used for the given purpose: `{command_prefix} config CONFIG_TYPE set-handler PURPOSE AGENT_ID`")
|
||||
format!(
|
||||
"**Set** the agent to be used for the given purpose: `{command_prefix} config CONFIG_TYPE set-handler PURPOSE AGENT_ID`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn handlers_unset(command_prefix: &str) -> String {
|
||||
format!("**Unset** the agent to be used for the given purpose: `{command_prefix} config CONFIG_TYPE set-handler PURPOSE`")
|
||||
format!(
|
||||
"**Unset** the agent to be used for the given purpose: `{command_prefix} config CONFIG_TYPE set-handler PURPOSE`"
|
||||
)
|
||||
}
|
||||
|
||||
pub fn text_generation_heading() -> String {
|
||||
@@ -99,7 +107,9 @@ pub fn text_generation_prefix_requirement_type_intro() -> String {
|
||||
}
|
||||
|
||||
pub fn text_generation_prefix_requirement_type_outro(bot_username: &str) -> String {
|
||||
format!("Regardless of the setting, the bot will always respond to **direct mentions** (e.g. `@{bot_username}`).")
|
||||
format!(
|
||||
"Regardless of the setting, the bot will always respond to **direct mentions** (e.g. `@{bot_username}`)."
|
||||
)
|
||||
}
|
||||
|
||||
pub fn text_generation_auto_usage_heading() -> &'static str {
|
||||
|
||||
Reference in New Issue
Block a user