Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple CLI #94

Merged
merged 3 commits into from
Jul 22, 2023
Merged

Add simple CLI #94

merged 3 commits into from
Jul 22, 2023

Conversation

Neverous
Copy link
Owner

Adds support for quick export/dump/import in terminal.

Fixes #90

std::unique_ptr<QTranslator> translator{std::make_unique<QTranslator>()};
if(!translator->load(QLocale::system(), module, "_", ":/i18n") && !translator->load(QLocale::system(), module, "_", translations_path))
auto &translator = translators.emplace_back();
if(!translator.load(QLocale::system(), module, "_", ":/i18n") && !translator.load(QLocale::system(), module, "_", translations_path))

Check failure

Code scanning / Flawfinder (reported by Codacy)

This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available.

This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available.
@@ -1175,6 +1211,7 @@
continue;
}

emit progress(step++, total_steps, tr("Importing EFI Boot Manager entries (%1)…").arg(prefix));

Check warning

Code scanning / Cppcheck (reported by Codacy)

Local variable 'progress' shadows outer variable

Local variable 'progress' shadows outer variable
@Neverous Neverous marked this pull request as ready for review July 22, 2023 21:41
@Neverous Neverous merged commit 45d631a into master Jul 22, 2023
@Neverous Neverous deleted the cli branch July 22, 2023 22:17
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.

Add CLI commands
1 participant