24 lines
535 B
Rust
24 lines
535 B
Rust
use crate::cli::Issue2Work;
|
|
use crate::config::Config;
|
|
use crate::error::GeneralError;
|
|
use url::Url;
|
|
|
|
pub mod issue2work;
|
|
pub mod utils;
|
|
|
|
pub trait Issue2WorkActionTrait {
|
|
fn run(
|
|
&self,
|
|
url: &Url,
|
|
config: &Config,
|
|
args: &Issue2Work,
|
|
) -> impl std::future::Future<Output = Result<Issue2WorkResult, GeneralError>> + Send;
|
|
|
|
fn supports(&self, url: &Url, config: &Config, args: &Issue2Work) -> bool;
|
|
}
|
|
|
|
pub struct Issue2WorkResult {
|
|
pub work_package_url: String,
|
|
pub subject: String,
|
|
}
|