From: Arvin Schnell Date: Wed, 28 Jan 2026 13:27:06 +0000 (+0100) Subject: - coding style X-Git-Tag: v0.13.1~45^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1097%2Fhead;p=thirdparty%2Fsnapper.git - coding style --- diff --git a/client/snbk/cmd-restore.cc b/client/snbk/cmd-restore.cc index ffb97e52..085e79ad 100644 --- a/client/snbk/cmd-restore.cc +++ b/client/snbk/cmd-restore.cc @@ -96,8 +96,7 @@ namespace snapper << "\t" << _("snbk restore [numbers]") << '\n' << '\n' << "\t" << _("Notice:") << '\n' - << "\t" << _("- A backup-config must be specified to run this command.") - << '\n' + << "\t" << _("- A backup-config must be specified to run this command.") << '\n' << "\t" << _("- Restart the `snapperd` service to make the restored " "snapshots visible immediately.") << '\n' << '\n'; diff --git a/client/snbk/cmd-visualize.cc b/client/snbk/cmd-visualize.cc index 16f2ba3f..3981534e 100644 --- a/client/snbk/cmd-visualize.cc +++ b/client/snbk/cmd-visualize.cc @@ -57,28 +57,26 @@ namespace snapper }); - void help_visualize() + void + help_visualize() { cout << " " << _("Produce a specific graph in Graphviz DOT format:") << '\n' << "\t" << _("snbk visualize ") << '\n' << "\n" << "\t" << _("Supported modes:") << '\n' - << "\t" - << _("- source-tree: Produce a tree diagram of the snapshots on the source.") + << "\t" << _("- source-tree: Produce a tree diagram of the snapshots on the source.") << '\n' + << "\t" << _("- target-tree: Produce a tree diagram of the snapshots on the target.") << '\n' << '\n' - << "\t" - << _("- target-tree: Produce a tree diagram of the snapshots on the target.") - << '\n' - << '\n' - << _(" Options for the 'visualize' command:") << '\n'; + << " " << _("Options for the 'visualize' command:") << '\n'; print_options({ - { _("--rankdir, -r"), - _("The 'rankdir' diagram attribute of Graphviz. Defaults to 'LR'.") }, + { _("--rankdir, -r"), _("The 'rankdir' diagram attribute of Graphviz. Defaults to 'LR'.") }, }); } - void command_visualize(const GlobalOptions& global_options, GetOpts& get_opts, + + void + command_visualize(const GlobalOptions& global_options, GetOpts& get_opts, const BackupConfigs& backup_configs, ProxySnappers* snappers) { // Drawing a graph for multiple backup configs is not supported. @@ -88,10 +86,11 @@ namespace snapper "command."))); } - const BackupConfig& backup_config = backup_configs.front(); - // Check and parse arguments - const vector