Skip to content

Commit 556b0ac

Browse files
committed
Merge branch 'main' into feature/oidc-endpoint-passtrough
2 parents 21d13f9 + 57ba206 commit 556b0ac

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/app_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
use crate::cli::arguments::{parse_cli, Cli};
12
use crate::webserver::content_security_policy::ContentSecurityPolicyTemplate;
23
use crate::webserver::routing::RoutingConfig;
34
use anyhow::Context;
4-
use crate::cli::arguments::{Cli, parse_cli};
55
use config::Config;
66
use openidconnect::IssuerUrl;
77
use percent_encoding::AsciiSet;

src/cli/arguments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use super::commands::SubCommand;
12
use clap::Parser;
23
use std::path::PathBuf;
3-
use super::commands::SubCommand;
44

55
#[derive(Parser)]
66
#[clap(author, version, about, long_about = None)]

src/cli/commands.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use chrono::Utc;
12
use clap::Parser;
23
use std::path::Path;
3-
use chrono::Utc;
44

55
use crate::app_config::AppConfig;
66

@@ -21,10 +21,7 @@ impl SubCommand {
2121
match self {
2222
SubCommand::CreateMigration { migration_name } => {
2323
// Pass configuration_directory from app_config
24-
create_migration_file(
25-
migration_name,
26-
&app_config.configuration_directory,
27-
).await?;
24+
create_migration_file(migration_name, &app_config.configuration_directory).await?;
2825
Ok(())
2926
}
3027
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
extern crate core;
7272

7373
pub mod app_config;
74+
pub mod cli;
7475
pub mod dynamic_component;
7576
pub mod file_cache;
7677
pub mod filesystem;
@@ -79,7 +80,6 @@ pub mod template_helpers;
7980
pub mod templates;
8081
pub mod utils;
8182
pub mod webserver;
82-
pub mod cli;
8383

8484
use crate::app_config::AppConfig;
8585
use crate::filesystem::FileSystem;

0 commit comments

Comments
 (0)