Skip to content

Conversation

@SaadiSave
Copy link

@SaadiSave SaadiSave commented Nov 19, 2025

fixes #313 (partially?)

@davidanthoff, @uncomfyhalomacro

finally found enough time to implement my issue

I believe things have calmed down in this part of the codebase. The last significant commit was months ago.

I have commented every change unrelated to the module tree.

env_logger::init_from_env(env);

#[cfg(feature = "winpkgidentityext")]
#[cfg(all(windows, feature = "winpkgidentityext"))]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was testing the feature powerset with cargo-hack. Since the windows crate is only available on windows, it threw a compile error.

shell: CompletionShell,
app_name: &str,
) -> Result<()> {
pub fn generate<T: CommandFactory>(shell: CompletionShell, app_name: &str) -> Result<()> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command::completions::generate is self-explanatory in code

"default" => None,
_ => {
return Err(anyhow!(
_ => bail!(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to bail! for consistency with other parts of the codebase

@@ -0,0 +1,15 @@
pub mod autoinstall;

#[cfg(feature = "selfupdate")]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved feature gates to module-level where possible

config_file::{load_mut_config_db, save_config_db, JuliaupConfigChannel},
global_paths::GlobalPaths,
operations::garbage_collect_versions,
utils::{print_juliaup_style, JuliaupMessageType},
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intra-file import consistency (either nested or unnested)

@SaadiSave SaadiSave force-pushed the main branch 3 times, most recently from 1f4b862 to cde89d1 Compare November 19, 2025 08:56
global_paths::GlobalPaths,
jsonstructs_versionsdb::JuliaupVersionDB,
versions_file::load_versions_db,
};
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intra-file import style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up codebase

1 participant