summaryrefslogtreecommitdiffstats
path: root/src/constants.rs
blob: 7977aed1dd8042dc17266f042e47ef27e83865f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub(crate) const TITLE: &str = "Git Interactive Rebase Tool";
pub(crate) const TITLE_LENGTH: i32 = 27;
pub(crate) const TITLE_SHORT: &str = "Git Rebase";
pub(crate) const TITLE_SHORT_LENGTH: i32 = 10;
pub(crate) const TITLE_HELP_INDICATOR_LENGTH: i32 = 7;

pub(crate) const HEIGHT_ERROR_MESSAGE: &str = "Window too small, increase height to continue\n";
pub(crate) const MINIMUM_WINDOW_HEIGHT_ERROR_WIDTH: usize = 45;
pub(crate) const SHORT_ERROR_MESSAGE: &str = "Window too small\n";
pub(crate) const SHORT_ERROR_MESSAGE_WIDTH: usize = 16;

pub(crate) const MINIMUM_WINDOW_HEIGHT: usize = 5; // title + pad top + line + pad bottom + help
pub(crate) const MINIMUM_COMPACT_WINDOW_WIDTH: usize = 20; // ">s ccc mmmmmmmmmmmmm".len()
pub(crate) const MINIMUM_FULL_WINDOW_WIDTH: usize = 34; // " > squash cccccccc mmmmmmmmmmmmm %".len()

pub(crate) const NAME: &str = "interactive-rebase-tool";
pub(crate) const VERSION: &str = env!("CARGO_PKG_VERSION");