mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdExtension: Table now assumes infinite width, adds 'link' label
- Infinity = 1024 in this case.
This commit is contained in:
parent
1f1f416c54
commit
882a6efa00
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
int CmdExtensions (Rules& rules, Extensions& extensions)
|
||||
{
|
||||
Table t;
|
||||
t.width (1024);
|
||||
t.colorHeader (Color ("underline"));
|
||||
t.add ("Extension", true);
|
||||
t.add ("Status", true);
|
||||
|
@ -54,6 +55,8 @@ int CmdExtensions (Rules& rules, Extensions& extensions)
|
|||
else if (! program.executable ()) perms = "No executable";
|
||||
else perms = "Active";
|
||||
|
||||
if (program.is_link ()) perms += " (link)";
|
||||
|
||||
t.set (row, 1, perms);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue