aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_show.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 16:17:52 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 16:17:52 +0000
commit30395fef3fa529fab7645a49b776d3536ab674ce (patch)
tree8ddf6b6f8ced79fe264b54de225c4b9bd31ab141 /src/clients/cave/cmd_show.cc
parent532919d8b59ef82edaba3f903af6dfbbaca8e7d4 (diff)
downloadpaludis-30395fef3fa529fab7645a49b776d3536ab674ce.tar.gz
paludis-30395fef3fa529fab7645a49b776d3536ab674ce.tar.xz
Show mask tokens
Diffstat (limited to 'src/clients/cave/cmd_show.cc')
-rw-r--r--src/clients/cave/cmd_show.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc
index 9b086cfc7..dead782ab 100644
--- a/src/clients/cave/cmd_show.cc
+++ b/src/clients/cave/cmd_show.cc
@@ -1029,9 +1029,10 @@ namespace
else
{
out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
+ (cmdline.a_raw_names.specified() ? fs_mask_value_raw() : fs_mask_value_human()),
fv<'s'>("Masked"),
fv<'v'>("by " + m.description()),
+ fv<'t'>(""),
fv<'i'>(std::string(indent, ' ')),
fv<'b'>(""),
fv<'p'>("")
@@ -1042,9 +1043,10 @@ namespace
void visit(const UnsupportedMask & m)
{
out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
+ (cmdline.a_raw_names.specified() ? fs_mask_value_raw() : fs_mask_value_human()),
fv<'s'>(cmdline.a_raw_names.specified() ? stringify(m.key()) : m.description()),
fv<'v'>(m.explanation()),
+ fv<'t'>(""),
fv<'i'>(std::string(indent, ' ')),
fv<'b'>(""),
fv<'p'>("")
@@ -1054,9 +1056,10 @@ namespace
void visit(const AssociationMask & m)
{
out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
+ (cmdline.a_raw_names.specified() ? fs_mask_value_raw() : fs_mask_value_human()),
fv<'s'>(cmdline.a_raw_names.specified() ? stringify(m.key()) : "by " + m.description()),
fv<'v'>(stringify(m.associated_package_spec())),
+ fv<'t'>(""),
fv<'i'>(std::string(indent, ' ')),
fv<'b'>(""),
fv<'p'>("")
@@ -1066,9 +1069,10 @@ namespace
void visit(const UserMask & m)
{
out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
+ (cmdline.a_raw_names.specified() ? fs_mask_value_raw() : fs_mask_value_human()),
fv<'s'>(cmdline.a_raw_names.specified() ? stringify(m.key()) : "by " + m.description()),
fv<'v'>(""),
+ fv<'t'>(m.token()),
fv<'i'>(std::string(indent, ' ')),
fv<'b'>(""),
fv<'p'>("")
@@ -1078,9 +1082,10 @@ namespace
void visit(const RepositoryMask & m)
{
out << fuc(
- (cmdline.a_raw_names.specified() ? fs_metadata_value_raw() : fs_metadata_value_human()),
+ (cmdline.a_raw_names.specified() ? fs_mask_value_raw() : fs_mask_value_human()),
fv<'s'>(cmdline.a_raw_names.specified() ? stringify(m.key()) : "by " + m.description()),
fv<'v'>(stringify(m.mask_file())),
+ fv<'t'>(m.token()),
fv<'i'>(std::string(indent, ' ')),
fv<'b'>(""),
fv<'p'>("")