Public Member Functions | |
| bool | start_application () |
| bool | delete_snapshot () |
| bool | delete_all_snapshots () |
Static Public Member Functions | |
| static int | main (string[] args) |
| static void | check_if_admin () |
Public Attributes | |
| int | snapshot_list_start_index = 0 |
Private Member Functions | |
| void | list_snapshots (bool paginate, int page_size=20) |
| void | list_devices (Gee.ArrayList< Device > device_list) |
| Gee.ArrayList< Device > | list_all_devices () |
| Gee.ArrayList< Device > | list_grub_devices (bool print_to_console=true) |
| void | print_grid (string[,] grid, bool[] right_align, bool has_header=true) |
| bool | create_snapshot (bool ondemand) |
| bool | restore_snapshot () |
| void | select_snapshot_device (bool prompt_if_empty) |
| Snapshot? | select_snapshot () |
| void | select_snapshot_for_restore () |
| void | select_snapshot_for_deletion () |
| void | init_mounts () |
| void | map_devices () |
| void | select_grub_device () |
| void | confirm_restore () |
| Device? | read_stdin_device (Gee.ArrayList< Device > device_list, string device_default) |
| Device? | read_stdin_device_mounts (Gee.ArrayList< Device > device_list, MountEntry mnt) |
| Device? | get_device_from_index (Gee.ArrayList< Device > device_list, string index_string) |
| Snapshot | read_stdin_snapshot () |
| bool | read_stdin_grub_install (bool reinstall_default) |
| bool | read_stdin_restore_confirm () |
Static Private Member Functions | |
| static void | set_locale () |
| static void | parse_arguments (string[] args) |
| static string | version_message () |
| static string | help_message () |
Definition at line 50 of file AppConsole.vala.
|
inlinestatic |
Definition at line 105 of file AppConsole.vala.
References _, exit(), TeeJee.Logging.log_msg(), and TeeJee.System.user_is_admin().
Referenced by main().
|
inlineprivate |
Definition at line 1103 of file AppConsole.vala.
References _, App, Main.cmd_confirm, Main.exit_app(), Main.get_restore_messages(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), and read_stdin_restore_confirm().
Referenced by restore_snapshot().
|
inlineprivate |
Definition at line 612 of file AppConsole.vala.
References App, Main.create_snapshot(), and select_snapshot_device().
Referenced by start_application().
|
inline |
Definition at line 1368 of file AppConsole.vala.
References App, Main.repo, select_snapshot_device(), and SnapshotRepo.snapshots.
Referenced by start_application().
|
inline |
Definition at line 1355 of file AppConsole.vala.
References App, Snapshot.remove(), select_snapshot_device(), select_snapshot_for_deletion(), and Main.snapshot_to_delete.
Referenced by start_application().
|
inlineprivate |
Definition at line 1213 of file AppConsole.vala.
Referenced by read_stdin_device(), and read_stdin_device_mounts().
|
inlinestaticprivate |
Definition at line 350 of file AppConsole.vala.
References _, AppAuthorEmail, AppName, and AppVersion.
Referenced by main().
|
inlineprivate |
Definition at line 810 of file AppConsole.vala.
References App, Main.init_mount_list(), TeeJee.Logging.log_debug(), and Main.mount_list.
Referenced by restore_snapshot().
|
inlineprivate |
Definition at line 492 of file AppConsole.vala.
References _, TeeJee.FileSystem.format_file_size(), Device.get_block_devices_using_lsblk(), and print_grid().
Referenced by map_devices(), and start_application().
|
inlineprivate |
Definition at line 461 of file AppConsole.vala.
References _, and print_grid().
Referenced by select_snapshot_device().
|
inlineprivate |
Definition at line 533 of file AppConsole.vala.
References _, Device.get_block_devices_using_lsblk(), and print_grid().
Referenced by select_grub_device().
|
inlineprivate |
Definition at line 425 of file AppConsole.vala.
References _, App, Snapshot.description, Snapshot.name, print_grid(), Main.repo, snapshot_list_start_index, SnapshotRepo.snapshots, and Snapshot.taglist_short.
Referenced by read_stdin_snapshot(), select_snapshot(), and start_application().
|
inlinestatic |
Definition at line 54 of file AppConsole.vala.
References App, check_if_admin(), Main.exit_app(), help_message(), Main.initialize(), TeeJee.Logging.LOG_ENABLE, TeeJee.Logging.LOG_TIMESTAMP, Main.Main(), parse_arguments(), set_locale(), Main.setup_env(), and version_message().
|
inlineprivate |
Definition at line 827 of file AppConsole.vala.
References _, App, Main.cmd_scripted, Main.cmd_target_device, Device.device, MountEntry.device, Main.dst_root, Main.exit_app(), Device.get_device_by_name(), Device.has_linux_filesystem(), list_all_devices(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), Main.mirror_system, Main.mount_list, MountEntry.mount_point, Main.partitions, read_stdin_device_mounts(), Device.short_name_with_alias, Device.symlinks, Main.sys_root, and Device.uuid.
Referenced by restore_snapshot().
|
inlinestaticprivate |
Definition at line 117 of file AppConsole.vala.
References _, App, Main.exit_app(), TeeJee.Logging.LOG_COMMANDS, TeeJee.Logging.LOG_DEBUG, TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), TeeJee.Logging.LOG_TIMESTAMP, and Main.validate_cmd_tags().
Referenced by main().
|
inlineprivate |
Definition at line 585 of file AppConsole.vala.
Referenced by list_all_devices(), list_devices(), list_grub_devices(), and list_snapshots().
|
inlineprivate |
Definition at line 1132 of file AppConsole.vala.
References _, App, Main.exit_app(), Device.get_device_by_name(), get_device_from_index(), TeeJee.Logging.log_error(), and TeeJee.Logging.log_msg().
Referenced by select_grub_device(), and select_snapshot_device().
|
inlineprivate |
Definition at line 1171 of file AppConsole.vala.
References App, MountEntry.device, Main.dst_root, Main.exit_app(), Device.get_device_by_name(), get_device_from_index(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), and Main.mirror_system.
Referenced by map_devices().
|
inlineprivate |
Definition at line 1283 of file AppConsole.vala.
References App, Main.exit_app(), TeeJee.Logging.log_error(), and TeeJee.Logging.log_msg().
Referenced by select_grub_device().
|
inlineprivate |
Definition at line 1321 of file AppConsole.vala.
References App, Main.exit_app(), TeeJee.Logging.log_error(), and TeeJee.Logging.log_msg().
Referenced by confirm_restore().
|
inlineprivate |
Definition at line 1227 of file AppConsole.vala.
References App, Main.exit_app(), list_snapshots(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), Main.repo, snapshot_list_start_index, and SnapshotRepo.snapshots.
Referenced by select_snapshot().
|
inlineprivate |
Definition at line 619 of file AppConsole.vala.
References _, App, Main.btrfs_mode, Main.cmd_scripted, confirm_restore(), init_mounts(), TeeJee.Logging.log_msg(), map_devices(), Main.mount_target_devices(), Main.restore_snapshot(), select_grub_device(), select_snapshot_device(), and select_snapshot_for_restore().
Referenced by start_application().
|
inlineprivate |
Definition at line 957 of file AppConsole.vala.
References _, App, Main.cmd_confirm, Main.cmd_grub_device, Main.cmd_scripted, Main.cmd_skip_grub, Device.device, Main.exit_app(), Device.get_device_by_name(), Main.grub_device, list_grub_devices(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), Main.mirror_system, Main.partitions, read_stdin_device(), read_stdin_grub_install(), Main.reinstall_grub2, Device.symlinks, Device.type, and Device.uuid.
Referenced by restore_snapshot().
|
inlineprivate |
Definition at line 727 of file AppConsole.vala.
References _, App, Main.cmd_scripted, Main.cmd_snapshot, Device.device, SnapshotRepo.device, Main.exit_app(), SnapshotRepo.has_snapshots(), list_snapshots(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), Main.mirror_system, read_stdin_snapshot(), Main.repo, and SnapshotRepo.snapshots.
Referenced by select_snapshot_for_deletion(), and select_snapshot_for_restore().
|
inlineprivate |
Definition at line 654 of file AppConsole.vala.
References _, App, SnapshotRepo.available(), Main.backup_uuid, Main.btrfs_mode, Main.check_device_for_backup(), Main.cmd_scripted, SnapshotRepo.device, Main.exit_app(), SnapshotRepo.from_device(), list_devices(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), Main.mirror_system, Main.partitions, read_stdin_device(), Main.repo, and SnapshotRepo.snapshots.
Referenced by create_snapshot(), delete_all_snapshots(), delete_snapshot(), and restore_snapshot().
|
inlineprivate |
Definition at line 802 of file AppConsole.vala.
References App, Main.exit_app(), TeeJee.Logging.log_error(), select_snapshot(), and Main.snapshot_to_delete.
Referenced by delete_snapshot().
|
inlineprivate |
Definition at line 794 of file AppConsole.vala.
References App, Main.exit_app(), TeeJee.Logging.log_error(), select_snapshot(), and Main.snapshot_to_restore.
Referenced by restore_snapshot().
|
inlinestaticprivate |
Definition at line 97 of file AppConsole.vala.
References GETTEXT_PACKAGE, LOCALE_DIR, and TeeJee.Logging.log_debug().
Referenced by main().
|
inline |
Definition at line 282 of file AppConsole.vala.
References _, App, Main.app_mode, create_snapshot(), delete_all_snapshots(), delete_snapshot(), SnapshotRepo.has_snapshots(), list_all_devices(), list_snapshots(), Main.live_system(), TeeJee.Logging.log_debug(), TeeJee.Logging.LOG_ENABLE, TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), SnapshotRepo.print_status(), Main.repo, and restore_snapshot().
|
inlinestaticprivate |
Definition at line 345 of file AppConsole.vala.
References AppName, and AppVersion.
Referenced by main().
| int AppConsole.snapshot_list_start_index = 0 |
Definition at line 52 of file AppConsole.vala.
Referenced by list_snapshots(), and read_stdin_snapshot().