Add -with-remote-extension (#2062)
This commit is contained in:
@@ -128,6 +128,16 @@ enum Command {
|
||||
)]
|
||||
extension: Vec<String>,
|
||||
|
||||
/// Add remote extensions with a URL
|
||||
#[arg(
|
||||
long = "with-remote-extension",
|
||||
value_name = "URL",
|
||||
help = "Add remote extensions (can be specified multiple times)",
|
||||
long_help = "Add remote extensions from a URL. Can be specified multiple times. Format: 'url...'",
|
||||
action = clap::ArgAction::Append
|
||||
)]
|
||||
remote_extension: Vec<String>,
|
||||
|
||||
/// Add builtin extensions by name
|
||||
#[arg(
|
||||
long = "with-builtin",
|
||||
@@ -203,6 +213,16 @@ enum Command {
|
||||
)]
|
||||
extension: Vec<String>,
|
||||
|
||||
/// Add remote extensions
|
||||
#[arg(
|
||||
long = "with-remote-extension",
|
||||
value_name = "URL",
|
||||
help = "Add remote extensions (can be specified multiple times)",
|
||||
long_help = "Add remote extensions. Can be specified multiple times. Format: 'url...'",
|
||||
action = clap::ArgAction::Append
|
||||
)]
|
||||
remote_extension: Vec<String>,
|
||||
|
||||
/// Add builtin extensions by name
|
||||
#[arg(
|
||||
long = "with-builtin",
|
||||
@@ -323,6 +343,7 @@ pub async fn cli() -> Result<()> {
|
||||
resume,
|
||||
debug,
|
||||
extension,
|
||||
remote_extension,
|
||||
builtin,
|
||||
}) => {
|
||||
match command {
|
||||
@@ -336,6 +357,7 @@ pub async fn cli() -> Result<()> {
|
||||
identifier.map(extract_identifier),
|
||||
resume,
|
||||
extension,
|
||||
remote_extension,
|
||||
builtin,
|
||||
debug,
|
||||
)
|
||||
@@ -357,6 +379,7 @@ pub async fn cli() -> Result<()> {
|
||||
resume,
|
||||
debug,
|
||||
extension,
|
||||
remote_extension,
|
||||
builtin,
|
||||
}) => {
|
||||
let contents = match (instructions, input_text) {
|
||||
@@ -385,6 +408,7 @@ pub async fn cli() -> Result<()> {
|
||||
identifier.map(extract_identifier),
|
||||
resume,
|
||||
extension,
|
||||
remote_extension,
|
||||
builtin,
|
||||
debug,
|
||||
)
|
||||
@@ -468,7 +492,7 @@ pub async fn cli() -> Result<()> {
|
||||
return Ok(());
|
||||
} else {
|
||||
// Run session command by default
|
||||
let mut session = build_session(None, false, vec![], vec![], false).await;
|
||||
let mut session = build_session(None, false, vec![], vec![], vec![], false).await;
|
||||
setup_logging(
|
||||
session.session_file().file_stem().and_then(|s| s.to_str()),
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user