mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 08:56:43 +02:00
Feature #1492
- #1492 task show to display default values when appropriate (thanks to Renato Alves).
This commit is contained in:
parent
149c3c8d9e
commit
b354ed7bd2
8 changed files with 16 additions and 0 deletions
|
@ -295,6 +295,14 @@ int CmdShow::execute (std::string& output)
|
|||
int row = view.addRow ();
|
||||
view.set (row, 0, i->first, color);
|
||||
view.set (row, 1, value, color);
|
||||
|
||||
if (default_config[i->first] != value &&
|
||||
default_config[i->first] != "")
|
||||
{
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, std::string (" ") + STRING_CMD_SHOW_CONF_DEFAULT, color);
|
||||
view.set (row, 1, default_config[i->first], color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -763,6 +763,7 @@
|
|||
#define STRING_CMD_SHOW_LOC_EXIST "Configuration error: data.location contains a directory name that doesn't exist, or is unreadable."
|
||||
#define STRING_CMD_SHOW_CONF_VAR "Config Variable"
|
||||
#define STRING_CMD_SHOW_CONF_VALUE "Value"
|
||||
#define STRING_CMD_SHOW_CONF_DEFAULT "Default value"
|
||||
#define STRING_CMD_SHOWRAW "Shows all configuration settings in a machine-readable format"
|
||||
|
||||
// Task
|
||||
|
|
|
@ -777,6 +777,7 @@
|
|||
#define STRING_CMD_SHOW_LOC_EXIST "Error de configuración: data.location contiene un nombre de directorio que no existe o no se puede leer."
|
||||
#define STRING_CMD_SHOW_CONF_VAR "Variable Config"
|
||||
#define STRING_CMD_SHOW_CONF_VALUE "Valor"
|
||||
#define STRING_CMD_SHOW_CONF_DEFAULT "Default value"
|
||||
#define STRING_CMD_SHOWRAW "Muestra todas las variables de configuración en un formato legible por la máquina"
|
||||
|
||||
// Task
|
||||
|
|
|
@ -763,6 +763,7 @@
|
|||
#define STRING_CMD_SHOW_LOC_EXIST "Configuration error: data.location contains a directory name that doesn't exist, or is unreadable."
|
||||
#define STRING_CMD_SHOW_CONF_VAR "Config Variable"
|
||||
#define STRING_CMD_SHOW_CONF_VALUE "Value"
|
||||
#define STRING_CMD_SHOW_CONF_DEFAULT "Default value"
|
||||
#define STRING_CMD_SHOWRAW "Shows all configuration settings in a machine-readable format"
|
||||
|
||||
// Task
|
||||
|
|
|
@ -764,6 +764,7 @@
|
|||
#define STRING_CMD_SHOW_LOC_EXIST "Errore di configurazione: data.location contiene una directory che non esiste o non è leggibile."
|
||||
#define STRING_CMD_SHOW_CONF_VAR "Variabile di configurazione"
|
||||
#define STRING_CMD_SHOW_CONF_VALUE "Valore"
|
||||
#define STRING_CMD_SHOW_CONF_DEFAULT "Default value"
|
||||
#define STRING_CMD_SHOWRAW "Mostra le impostazioni di configurazione in formato processabile"
|
||||
|
||||
// Task
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue