aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-12 21:41:50 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-12 22:24:33 +0000
commit67bd5a2be68eb8dc7faeab3de48dbf970812331d (patch)
treee8af9459c6e736a5c682048924ae21e523486487
parent2cf131574c5dd27d2cd1a6a8a3c330bb65cd9bae (diff)
downloadpaludis-67bd5a2be68eb8dc7faeab3de48dbf970812331d.tar.gz
paludis-67bd5a2be68eb8dc7faeab3de48dbf970812331d.tar.xz
Make command importance an enum
-rw-r--r--src/clients/cave/cmd_config.cc6
-rw-r--r--src/clients/cave/cmd_config.hh4
-rw-r--r--src/clients/cave/cmd_contents.cc6
-rw-r--r--src/clients/cave/cmd_contents.hh4
-rw-r--r--src/clients/cave/cmd_digest.cc6
-rw-r--r--src/clients/cave/cmd_digest.hh4
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc12
-rw-r--r--src/clients/cave/cmd_display_resolution.hh4
-rw-r--r--src/clients/cave/cmd_dump_cave_formats_conf.cc8
-rw-r--r--src/clients/cave/cmd_dump_cave_formats_conf.hh4
-rw-r--r--src/clients/cave/cmd_executables.cc8
-rw-r--r--src/clients/cave/cmd_executables.hh4
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc12
-rw-r--r--src/clients/cave/cmd_execute_resolution.hh4
-rw-r--r--src/clients/cave/cmd_find_candidates.cc6
-rw-r--r--src/clients/cave/cmd_find_candidates.hh2
-rw-r--r--src/clients/cave/cmd_fix_cache.cc8
-rw-r--r--src/clients/cave/cmd_fix_cache.hh4
-rw-r--r--src/clients/cave/cmd_fix_linkage.cc14
-rw-r--r--src/clients/cave/cmd_fix_linkage.hh4
-rw-r--r--src/clients/cave/cmd_generate_metadata.cc6
-rw-r--r--src/clients/cave/cmd_generate_metadata.hh2
-rw-r--r--src/clients/cave/cmd_graph_jobs.cc14
-rw-r--r--src/clients/cave/cmd_graph_jobs.hh4
-rw-r--r--src/clients/cave/cmd_has_version.cc6
-rw-r--r--src/clients/cave/cmd_has_version.hh4
-rw-r--r--src/clients/cave/cmd_help.cc20
-rw-r--r--src/clients/cave/cmd_help.hh2
-rw-r--r--src/clients/cave/cmd_import.cc6
-rw-r--r--src/clients/cave/cmd_import.hh4
-rw-r--r--src/clients/cave/cmd_info.cc12
-rw-r--r--src/clients/cave/cmd_info.hh4
-rw-r--r--src/clients/cave/cmd_manage_search_index.cc6
-rw-r--r--src/clients/cave/cmd_manage_search_index.hh4
-rw-r--r--src/clients/cave/cmd_match.cc6
-rw-r--r--src/clients/cave/cmd_match.hh4
-rw-r--r--src/clients/cave/cmd_mirror.cc6
-rw-r--r--src/clients/cave/cmd_mirror.hh2
-rw-r--r--src/clients/cave/cmd_owner.cc6
-rw-r--r--src/clients/cave/cmd_owner.hh4
-rw-r--r--src/clients/cave/cmd_perform.cc6
-rw-r--r--src/clients/cave/cmd_perform.hh4
-rw-r--r--src/clients/cave/cmd_print_best_version.cc6
-rw-r--r--src/clients/cave/cmd_print_best_version.hh4
-rw-r--r--src/clients/cave/cmd_print_categories.cc6
-rw-r--r--src/clients/cave/cmd_print_categories.hh4
-rw-r--r--src/clients/cave/cmd_print_commands.cc10
-rw-r--r--src/clients/cave/cmd_print_commands.hh4
-rw-r--r--src/clients/cave/cmd_print_dependent_ids.cc6
-rw-r--r--src/clients/cave/cmd_print_dependent_ids.hh2
-rw-r--r--src/clients/cave/cmd_print_environment_metadata.cc6
-rw-r--r--src/clients/cave/cmd_print_environment_metadata.hh4
-rw-r--r--src/clients/cave/cmd_print_id_actions.cc6
-rw-r--r--src/clients/cave/cmd_print_id_actions.hh4
-rw-r--r--src/clients/cave/cmd_print_id_contents.cc6
-rw-r--r--src/clients/cave/cmd_print_id_contents.hh4
-rw-r--r--src/clients/cave/cmd_print_id_environment_variable.cc6
-rw-r--r--src/clients/cave/cmd_print_id_environment_variable.hh4
-rw-r--r--src/clients/cave/cmd_print_id_executables.cc6
-rw-r--r--src/clients/cave/cmd_print_id_executables.hh2
-rw-r--r--src/clients/cave/cmd_print_id_masks.cc6
-rw-r--r--src/clients/cave/cmd_print_id_masks.hh4
-rw-r--r--src/clients/cave/cmd_print_id_metadata.cc6
-rw-r--r--src/clients/cave/cmd_print_id_metadata.hh4
-rw-r--r--src/clients/cave/cmd_print_id_size.cc8
-rw-r--r--src/clients/cave/cmd_print_id_size.hh4
-rw-r--r--src/clients/cave/cmd_print_ids.cc6
-rw-r--r--src/clients/cave/cmd_print_ids.hh4
-rw-r--r--src/clients/cave/cmd_print_owners.cc8
-rw-r--r--src/clients/cave/cmd_print_owners.hh2
-rw-r--r--src/clients/cave/cmd_print_packages.cc6
-rw-r--r--src/clients/cave/cmd_print_packages.hh2
-rw-r--r--src/clients/cave/cmd_print_repositories.cc6
-rw-r--r--src/clients/cave/cmd_print_repositories.hh2
-rw-r--r--src/clients/cave/cmd_print_repository_formats.cc6
-rw-r--r--src/clients/cave/cmd_print_repository_formats.hh2
-rw-r--r--src/clients/cave/cmd_print_repository_metadata.cc6
-rw-r--r--src/clients/cave/cmd_print_repository_metadata.hh4
-rw-r--r--src/clients/cave/cmd_print_set.cc6
-rw-r--r--src/clients/cave/cmd_print_set.hh4
-rw-r--r--src/clients/cave/cmd_print_sets.cc6
-rw-r--r--src/clients/cave/cmd_print_sets.hh2
-rw-r--r--src/clients/cave/cmd_print_spec.cc6
-rw-r--r--src/clients/cave/cmd_print_spec.hh4
-rw-r--r--src/clients/cave/cmd_print_sync_protocols.cc6
-rw-r--r--src/clients/cave/cmd_print_sync_protocols.hh2
-rw-r--r--src/clients/cave/cmd_print_unused_distfiles.cc6
-rw-r--r--src/clients/cave/cmd_print_unused_distfiles.hh2
-rw-r--r--src/clients/cave/cmd_purge.cc14
-rw-r--r--src/clients/cave/cmd_purge.hh6
-rw-r--r--src/clients/cave/cmd_report.cc12
-rw-r--r--src/clients/cave/cmd_report.hh4
-rw-r--r--src/clients/cave/cmd_resolve.cc14
-rw-r--r--src/clients/cave/cmd_resolve.hh4
-rw-r--r--src/clients/cave/cmd_resume.cc14
-rw-r--r--src/clients/cave/cmd_resume.hh4
-rw-r--r--src/clients/cave/cmd_search.cc12
-rw-r--r--src/clients/cave/cmd_search.hh4
-rw-r--r--src/clients/cave/cmd_show.cc12
-rw-r--r--src/clients/cave/cmd_show.hh4
-rw-r--r--src/clients/cave/cmd_size.cc8
-rw-r--r--src/clients/cave/cmd_size.hh4
-rw-r--r--src/clients/cave/cmd_sync.cc14
-rw-r--r--src/clients/cave/cmd_sync.hh4
-rw-r--r--src/clients/cave/cmd_sync_protocol_options.cc8
-rw-r--r--src/clients/cave/cmd_sync_protocol_options.hh4
-rw-r--r--src/clients/cave/cmd_uninstall.cc12
-rw-r--r--src/clients/cave/cmd_uninstall.hh6
-rw-r--r--src/clients/cave/cmd_update_world.cc6
-rw-r--r--src/clients/cave/cmd_update_world.hh4
-rw-r--r--src/clients/cave/cmd_verify.cc6
-rw-r--r--src/clients/cave/cmd_verify.hh4
-rw-r--r--src/clients/cave/command.cc8
-rw-r--r--src/clients/cave/command.hh14
-rw-r--r--src/clients/cave/command_line.cc6
-rw-r--r--src/clients/cave/script_command.cc6
-rw-r--r--src/clients/cave/script_command.hh2
117 files changed, 523 insertions, 173 deletions
diff --git a/src/clients/cave/cmd_config.cc b/src/clients/cave/cmd_config.cc
index 336e778..057d823 100644
--- a/src/clients/cave/cmd_config.cc
+++ b/src/clients/cave/cmd_config.cc
@@ -119,3 +119,9 @@ ConfigCommand::make_doc_cmdline()
return std::make_shared<ConfigCommandLine>();
}
+CommandImportance
+ConfigCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_config.hh b/src/clients/cave/cmd_config.hh
index 3349587..9cf362a 100644
--- a/src/clients/cave/cmd_config.hh
+++ b/src/clients/cave/cmd_config.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_contents.cc b/src/clients/cave/cmd_contents.cc
index 8f1d937..60fe2f5 100644
--- a/src/clients/cave/cmd_contents.cc
+++ b/src/clients/cave/cmd_contents.cc
@@ -156,3 +156,9 @@ ContentsCommand::make_doc_cmdline()
return std::make_shared<ContentsCommandLine>();
}
+CommandImportance
+ContentsCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_contents.hh b/src/clients/cave/cmd_contents.hh
index 58c46dc..1dddb9f 100644
--- a/src/clients/cave/cmd_contents.hh
+++ b/src/clients/cave/cmd_contents.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_digest.cc b/src/clients/cave/cmd_digest.cc
index bfa0ac9..430bc51 100644
--- a/src/clients/cave/cmd_digest.cc
+++ b/src/clients/cave/cmd_digest.cc
@@ -174,3 +174,9 @@ DigestCommand::make_doc_cmdline()
return std::make_shared<DigestCommandLine>();
}
+CommandImportance
+DigestCommand::importance() const
+{
+ return ci_development;
+}
+
diff --git a/src/clients/cave/cmd_digest.hh b/src/clients/cave/cmd_digest.hh
index 75d16e5..bf50cc3 100644
--- a/src/clients/cave/cmd_digest.hh
+++ b/src/clients/cave/cmd_digest.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index e41400a..f36544b 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -1845,12 +1845,6 @@ namespace
}
}
-bool
-DisplayResolutionCommand::important() const
-{
- return false;
-}
-
int
DisplayResolutionCommand::run(
const std::shared_ptr<Environment> & env,
@@ -1913,3 +1907,9 @@ DisplayResolutionCommand::make_doc_cmdline()
return std::make_shared<DisplayResolutionCommandLine>();
}
+CommandImportance
+DisplayResolutionCommand::importance() const
+{
+ return ci_internal;
+}
+
diff --git a/src/clients/cave/cmd_display_resolution.hh b/src/clients/cave/cmd_display_resolution.hh
index fcf1d70..c22ff8e 100644
--- a/src/clients/cave/cmd_display_resolution.hh
+++ b/src/clients/cave/cmd_display_resolution.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,7 +31,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_dump_cave_formats_conf.cc b/src/clients/cave/cmd_dump_cave_formats_conf.cc
index e1cc518..5453380 100644
--- a/src/clients/cave/cmd_dump_cave_formats_conf.cc
+++ b/src/clients/cave/cmd_dump_cave_formats_conf.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -246,3 +246,9 @@ DumpCaveFormatsConfCommand::make_doc_cmdline()
return std::make_shared<DumpCaveFormatsConfCommandLine>();
}
+CommandImportance
+DumpCaveFormatsConfCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_dump_cave_formats_conf.hh b/src/clients/cave/cmd_dump_cave_formats_conf.hh
index d0546e1..77fa4a3 100644
--- a/src/clients/cave/cmd_dump_cave_formats_conf.hh
+++ b/src/clients/cave/cmd_dump_cave_formats_conf.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_executables.cc b/src/clients/cave/cmd_executables.cc
index b7e5c3a..4130225 100644
--- a/src/clients/cave/cmd_executables.cc
+++ b/src/clients/cave/cmd_executables.cc
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2009 Alexander Færøy
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -102,3 +102,9 @@ ExecutablesCommand::make_doc_cmdline()
return std::make_shared<ExecutablesCommandLine>();
}
+CommandImportance
+ExecutablesCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_executables.hh b/src/clients/cave/cmd_executables.hh
index a840294..0971903 100644
--- a/src/clients/cave/cmd_executables.hh
+++ b/src/clients/cave/cmd_executables.hh
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2009 Alexander Færøy
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,6 +31,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index ebc2a68..4e14b80 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -1779,12 +1779,6 @@ namespace
}
}
-bool
-ExecuteResolutionCommand::important() const
-{
- return false;
-}
-
int
ExecuteResolutionCommand::run(
const std::shared_ptr<Environment> & env,
@@ -1842,3 +1836,9 @@ ExecuteResolutionCommand::make_doc_cmdline()
return std::make_shared<ExecuteResolutionCommandLine>();
}
+CommandImportance
+ExecuteResolutionCommand::importance() const
+{
+ return ci_internal;
+}
+
diff --git a/src/clients/cave/cmd_execute_resolution.hh b/src/clients/cave/cmd_execute_resolution.hh
index 5e76354..63c669d 100644
--- a/src/clients/cave/cmd_execute_resolution.hh
+++ b/src/clients/cave/cmd_execute_resolution.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,7 +31,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_find_candidates.cc b/src/clients/cave/cmd_find_candidates.cc
index e48668a..ee55cbd 100644
--- a/src/clients/cave/cmd_find_candidates.cc
+++ b/src/clients/cave/cmd_find_candidates.cc
@@ -342,3 +342,9 @@ FindCandidatesCommand::make_doc_cmdline()
return std::make_shared<FindCandidatesCommandLine>();
}
+CommandImportance
+FindCandidatesCommand::importance() const
+{
+ return ci_internal;
+}
+
diff --git a/src/clients/cave/cmd_find_candidates.hh b/src/clients/cave/cmd_find_candidates.hh
index 382c6be..716d3f1 100644
--- a/src/clients/cave/cmd_find_candidates.hh
+++ b/src/clients/cave/cmd_find_candidates.hh
@@ -34,6 +34,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_fix_cache.cc b/src/clients/cave/cmd_fix_cache.cc
index da1edef..f536c90 100644
--- a/src/clients/cave/cmd_fix_cache.cc
+++ b/src/clients/cave/cmd_fix_cache.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -155,3 +155,9 @@ FixCacheCommand::make_doc_cmdline()
{
return std::make_shared<FixCacheCommandLine>();
}
+CommandImportance
+FixCacheCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_fix_cache.hh b/src/clients/cave/cmd_fix_cache.hh
index 9c4e33a..01b0f00 100644
--- a/src/clients/cave/cmd_fix_cache.hh
+++ b/src/clients/cave/cmd_fix_cache.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_fix_linkage.cc b/src/clients/cave/cmd_fix_linkage.cc
index 95c7535..1c90472 100644
--- a/src/clients/cave/cmd_fix_linkage.cc
+++ b/src/clients/cave/cmd_fix_linkage.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -49,12 +49,6 @@ using namespace cave;
using std::cout;
using std::endl;
-bool
-FixLinkageCommand::important() const
-{
- return true;
-}
-
namespace
{
struct FixLinkageCommandLine :
@@ -260,3 +254,9 @@ FixLinkageCommand::make_doc_cmdline()
return std::make_shared<FixLinkageCommandLine>();
}
+CommandImportance
+FixLinkageCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_fix_linkage.hh b/src/clients/cave/cmd_fix_linkage.hh
index 6dd3d91..35fbbe3 100644
--- a/src/clients/cave/cmd_fix_linkage.hh
+++ b/src/clients/cave/cmd_fix_linkage.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_generate_metadata.cc b/src/clients/cave/cmd_generate_metadata.cc
index 5e64242..fee73df 100644
--- a/src/clients/cave/cmd_generate_metadata.cc
+++ b/src/clients/cave/cmd_generate_metadata.cc
@@ -323,3 +323,9 @@ GenerateMetadataCommand::make_doc_cmdline()
return std::make_shared<GenerateMetadataCommandLine>();
}
+CommandImportance
+GenerateMetadataCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_generate_metadata.hh b/src/clients/cave/cmd_generate_metadata.hh
index fa68f67..ac86ce1 100644
--- a/src/clients/cave/cmd_generate_metadata.hh
+++ b/src/clients/cave/cmd_generate_metadata.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_graph_jobs.cc b/src/clients/cave/cmd_graph_jobs.cc
index 39ad3da..5583422 100644
--- a/src/clients/cave/cmd_graph_jobs.cc
+++ b/src/clients/cave/cmd_graph_jobs.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -208,12 +208,6 @@ namespace
}
}
-bool
-GraphJobsCommand::important() const
-{
- return false;
-}
-
int
GraphJobsCommand::run(
const std::shared_ptr<Environment> & env,
@@ -276,3 +270,9 @@ GraphJobsCommand::make_doc_cmdline()
return std::make_shared<GraphJobsCommandLine>();
}
+CommandImportance
+GraphJobsCommand::importance() const
+{
+ return ci_internal;
+}
+
diff --git a/src/clients/cave/cmd_graph_jobs.hh b/src/clients/cave/cmd_graph_jobs.hh
index c1772d5..d0786a7 100644
--- a/src/clients/cave/cmd_graph_jobs.hh
+++ b/src/clients/cave/cmd_graph_jobs.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,7 +31,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_has_version.cc b/src/clients/cave/cmd_has_version.cc
index af90689..18cb856 100644
--- a/src/clients/cave/cmd_has_version.cc
+++ b/src/clients/cave/cmd_has_version.cc
@@ -112,3 +112,9 @@ HasVersionCommand::make_doc_cmdline()
return std::make_shared<HasVersionCommandLine>();
}
+CommandImportance
+HasVersionCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_has_version.hh b/src/clients/cave/cmd_has_version.hh
index 59be998..a306902 100644
--- a/src/clients/cave/cmd_has_version.hh
+++ b/src/clients/cave/cmd_has_version.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_help.cc b/src/clients/cave/cmd_help.cc
index baab367..bf23f9d 100644
--- a/src/clients/cave/cmd_help.cc
+++ b/src/clients/cave/cmd_help.cc
@@ -74,11 +74,11 @@ namespace
std::shared_ptr<Command> lhs(CommandFactory::get_instance()->create(left));
std::shared_ptr<Command> rhs(CommandFactory::get_instance()->create(right));
- if (lhs->important() && rhs->important())
+ if (lhs->importance() == ci_core && rhs->importance() == ci_core)
return left.length() < right.length();
- else if (lhs->important() && ! rhs->important())
+ else if (lhs->importance() == ci_core && ! rhs->importance() == ci_core)
return false;
- else if (! lhs->important() && rhs->important())
+ else if (! lhs->importance() == ci_core && rhs->importance() == ci_core)
return true;
else
return false;
@@ -86,12 +86,6 @@ namespace
};
}
-bool
-HelpCommand::important() const
-{
- return true;
-}
-
int
HelpCommand::run(const std::shared_ptr<Environment> & env,
const std::shared_ptr< const Sequence<std::string> > & args)
@@ -138,7 +132,7 @@ HelpCommand::run(const std::shared_ptr<Environment> & env,
{
std::shared_ptr<Command> instance(CommandFactory::get_instance()->create(*cmd));
- if (instance->important())
+ if (instance->importance() == ci_core)
cout << " " << *cmd << std::string(length - cmd->length(), ' ') << " "
<< instance->make_doc_cmdline()->app_synopsis() << std::endl;
}
@@ -162,3 +156,9 @@ HelpCommand::make_doc_cmdline()
return std::make_shared<HelpCommandLine>();
}
+CommandImportance
+HelpCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_help.hh b/src/clients/cave/cmd_help.hh
index 2245a94..a903b6e 100644
--- a/src/clients/cave/cmd_help.hh
+++ b/src/clients/cave/cmd_help.hh
@@ -29,7 +29,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(const std::shared_ptr<Environment> &,
const std::shared_ptr< const Sequence<std::string> > & args);
diff --git a/src/clients/cave/cmd_import.cc b/src/clients/cave/cmd_import.cc
index a34a23d..48a3d78 100644
--- a/src/clients/cave/cmd_import.cc
+++ b/src/clients/cave/cmd_import.cc
@@ -324,3 +324,9 @@ ImportCommand::make_doc_cmdline()
return std::make_shared<ImportCommandLine>();
}
+CommandImportance
+ImportCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_import.hh b/src/clients/cave/cmd_import.hh
index f4629ae..72c7f4d 100644
--- a/src/clients/cave/cmd_import.hh
+++ b/src/clients/cave/cmd_import.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_info.cc b/src/clients/cave/cmd_info.cc
index bd72650..a0b8d13 100644
--- a/src/clients/cave/cmd_info.cc
+++ b/src/clients/cave/cmd_info.cc
@@ -390,12 +390,6 @@ namespace
}
}
-bool
-InfoCommand::important() const
-{
- return true;
-}
-
int
InfoCommand::run(
const std::shared_ptr<Environment> & env,
@@ -445,3 +439,9 @@ InfoCommand::make_doc_cmdline()
return std::make_shared<InfoCommandLine>();
}
+CommandImportance
+InfoCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_info.hh b/src/clients/cave/cmd_info.hh
index ce6c6f7..ad6e113 100644
--- a/src/clients/cave/cmd_info.hh
+++ b/src/clients/cave/cmd_info.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_manage_search_index.cc b/src/clients/cave/cmd_manage_search_index.cc
index e95aea2..52b76a7 100644
--- a/src/clients/cave/cmd_manage_search_index.cc
+++ b/src/clients/cave/cmd_manage_search_index.cc
@@ -309,3 +309,9 @@ ManageSearchIndexCommand::make_doc_cmdline()
return std::make_shared<ManageSearchIndexCommandLine>();
}
+CommandImportance
+ManageSearchIndexCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_manage_search_index.hh b/src/clients/cave/cmd_manage_search_index.hh
index 4c216da..5bfa632 100644
--- a/src/clients/cave/cmd_manage_search_index.hh
+++ b/src/clients/cave/cmd_manage_search_index.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc
index d2c22fb..c41a31c 100644
--- a/src/clients/cave/cmd_match.cc
+++ b/src/clients/cave/cmd_match.cc
@@ -461,3 +461,9 @@ MatchCommand::make_doc_cmdline()
return std::make_shared<MatchCommandLine>();
}
+CommandImportance
+MatchCommand::importance() const
+{
+ return ci_internal;
+}
+
diff --git a/src/clients/cave/cmd_match.hh b/src/clients/cave/cmd_match.hh
index f4d002a..4d72bb1 100644
--- a/src/clients/cave/cmd_match.hh
+++ b/src/clients/cave/cmd_match.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -34,6 +34,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_mirror.cc b/src/clients/cave/cmd_mirror.cc
index c945aa1..0dcd36f 100644
--- a/src/clients/cave/cmd_mirror.cc
+++ b/src/clients/cave/cmd_mirror.cc
@@ -172,3 +172,9 @@ MirrorCommand::make_doc_cmdline()
return std::make_shared<MirrorCommandLine>();
}
+CommandImportance
+MirrorCommand::importance() const
+{
+ return ci_development;
+}
+
diff --git a/src/clients/cave/cmd_mirror.hh b/src/clients/cave/cmd_mirror.hh
index b31df22..6b56e5b 100644
--- a/src/clients/cave/cmd_mirror.hh
+++ b/src/clients/cave/cmd_mirror.hh
@@ -31,6 +31,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_owner.cc b/src/clients/cave/cmd_owner.cc
index bdba23e..c6b5239 100644
--- a/src/clients/cave/cmd_owner.cc
+++ b/src/clients/cave/cmd_owner.cc
@@ -116,3 +116,9 @@ OwnerCommand::make_doc_cmdline()
return std::make_shared<OwnerCommandLine>();
}
+CommandImportance
+OwnerCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_owner.hh b/src/clients/cave/cmd_owner.hh
index 6d55636..ed300f2 100644
--- a/src/clients/cave/cmd_owner.hh
+++ b/src/clients/cave/cmd_owner.hh
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2008 Alexander Færøy
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,6 +31,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_perform.cc b/src/clients/cave/cmd_perform.cc
index fce13cb..ca6d2c7 100644
--- a/src/clients/cave/cmd_perform.cc
+++ b/src/clients/cave/cmd_perform.cc
@@ -610,3 +610,9 @@ PerformCommand::make_doc_cmdline()
return std::make_shared<PerformCommandLine>();
}
+CommandImportance
+PerformCommand::importance() const
+{
+ return ci_internal;
+}
+
diff --git a/src/clients/cave/cmd_perform.hh b/src/clients/cave/cmd_perform.hh
index db8a84a..111cb2f 100644
--- a/src/clients/cave/cmd_perform.hh
+++ b/src/clients/cave/cmd_perform.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_best_version.cc b/src/clients/cave/cmd_print_best_version.cc
index 26ee18f..6691611 100644
--- a/src/clients/cave/cmd_print_best_version.cc
+++ b/src/clients/cave/cmd_print_best_version.cc
@@ -141,3 +141,9 @@ PrintBestVersionCommand::make_doc_cmdline()
return std::make_shared<PrintBestVersionCommandLine>();
}
+CommandImportance
+PrintBestVersionCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_best_version.hh b/src/clients/cave/cmd_print_best_version.hh
index 913a0f5..e33de22 100644
--- a/src/clients/cave/cmd_print_best_version.hh
+++ b/src/clients/cave/cmd_print_best_version.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_categories.cc b/src/clients/cave/cmd_print_categories.cc
index e583399..112d372 100644
--- a/src/clients/cave/cmd_print_categories.cc
+++ b/src/clients/cave/cmd_print_categories.cc
@@ -131,3 +131,9 @@ PrintCategoriesCommand::make_doc_cmdline()
return std::make_shared<PrintCategoriesCommandLine>();
}
+CommandImportance
+PrintCategoriesCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_categories.hh b/src/clients/cave/cmd_print_categories.hh
index e30820b..cb31dc4 100644
--- a/src/clients/cave/cmd_print_categories.hh
+++ b/src/clients/cave/cmd_print_categories.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_commands.cc b/src/clients/cave/cmd_print_commands.cc
index 6fcf8ae..98de969 100644
--- a/src/clients/cave/cmd_print_commands.cc
+++ b/src/clients/cave/cmd_print_commands.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -90,7 +90,7 @@ PrintCommandsCommand::run(
{
std::shared_ptr<Command> instance(CommandFactory::get_instance()->create(*cmd));
- if (! cmdline.a_all.specified() && ! instance->important())
+ if (! cmdline.a_all.specified() && ! instance->importance() == ci_core)
continue;
cout << stringify(*cmd) << endl;
@@ -105,3 +105,9 @@ PrintCommandsCommand::make_doc_cmdline()
return std::make_shared<PrintCommandsCommandLine>();
}
+CommandImportance
+PrintCommandsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_commands.hh b/src/clients/cave/cmd_print_commands.hh
index 3ad580a..f6049a0 100644
--- a/src/clients/cave/cmd_print_commands.hh
+++ b/src/clients/cave/cmd_print_commands.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_dependent_ids.cc b/src/clients/cave/cmd_print_dependent_ids.cc
index f725979..b02c983 100644
--- a/src/clients/cave/cmd_print_dependent_ids.cc
+++ b/src/clients/cave/cmd_print_dependent_ids.cc
@@ -157,3 +157,9 @@ PrintDependentIDsCommand::make_doc_cmdline()
return std::make_shared<PrintDependentIDsCommandLine>();
}
+CommandImportance
+PrintDependentIDsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_dependent_ids.hh b/src/clients/cave/cmd_print_dependent_ids.hh
index f8b1402..86dbe76 100644
--- a/src/clients/cave/cmd_print_dependent_ids.hh
+++ b/src/clients/cave/cmd_print_dependent_ids.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_environment_metadata.cc b/src/clients/cave/cmd_print_environment_metadata.cc
index 8c37077..c5ee16a 100644
--- a/src/clients/cave/cmd_print_environment_metadata.cc
+++ b/src/clients/cave/cmd_print_environment_metadata.cc
@@ -142,3 +142,9 @@ PrintEnvironmentMetadataCommand::make_doc_cmdline()
return std::make_shared<PrintEnvironmentMetadataCommandLine>();
}
+CommandImportance
+PrintEnvironmentMetadataCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_environment_metadata.hh b/src/clients/cave/cmd_print_environment_metadata.hh
index 06a7d63..43f0713 100644
--- a/src/clients/cave/cmd_print_environment_metadata.hh
+++ b/src/clients/cave/cmd_print_environment_metadata.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_actions.cc b/src/clients/cave/cmd_print_id_actions.cc
index 473dfee..76678d0 100644
--- a/src/clients/cave/cmd_print_id_actions.cc
+++ b/src/clients/cave/cmd_print_id_actions.cc
@@ -138,3 +138,9 @@ PrintIDActionsCommand::make_doc_cmdline()
return std::make_shared<PrintIDActionsCommandLine>();
}
+CommandImportance
+PrintIDActionsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_actions.hh b/src/clients/cave/cmd_print_id_actions.hh
index dee4014..32e155c 100644
--- a/src/clients/cave/cmd_print_id_actions.hh
+++ b/src/clients/cave/cmd_print_id_actions.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_contents.cc b/src/clients/cave/cmd_print_id_contents.cc
index f60db7c..61e1b91 100644
--- a/src/clients/cave/cmd_print_id_contents.cc
+++ b/src/clients/cave/cmd_print_id_contents.cc
@@ -192,3 +192,9 @@ PrintIDContentsCommand::make_doc_cmdline()
return std::make_shared<PrintContentsCommandLine>();
}
+CommandImportance
+PrintIDContentsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_contents.hh b/src/clients/cave/cmd_print_id_contents.hh
index 6db7c29..aabde60 100644
--- a/src/clients/cave/cmd_print_id_contents.hh
+++ b/src/clients/cave/cmd_print_id_contents.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_environment_variable.cc b/src/clients/cave/cmd_print_id_environment_variable.cc
index 9e7b372..e98d549 100644
--- a/src/clients/cave/cmd_print_id_environment_variable.cc
+++ b/src/clients/cave/cmd_print_id_environment_variable.cc
@@ -162,3 +162,9 @@ PrintIDEnvironmentVariableCommand::make_doc_cmdline()
return std::make_shared<PrintIDEnvironmentVariableCommandLine>();
}
+CommandImportance
+PrintIDEnvironmentVariableCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_environment_variable.hh b/src/clients/cave/cmd_print_id_environment_variable.hh
index 044dce4..26bbda4 100644
--- a/src/clients/cave/cmd_print_id_environment_variable.hh
+++ b/src/clients/cave/cmd_print_id_environment_variable.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_executables.cc b/src/clients/cave/cmd_print_id_executables.cc
index 4a18af7..898e9c8 100644
--- a/src/clients/cave/cmd_print_id_executables.cc
+++ b/src/clients/cave/cmd_print_id_executables.cc
@@ -106,3 +106,9 @@ PrintIDExecutablesCommand::make_doc_cmdline()
return std::make_shared<PrintIDExecutablesCommandLine>();
}
+CommandImportance
+PrintIDExecutablesCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_executables.hh b/src/clients/cave/cmd_print_id_executables.hh
index 58021af..0eaea9f 100644
--- a/src/clients/cave/cmd_print_id_executables.hh
+++ b/src/clients/cave/cmd_print_id_executables.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_masks.cc b/src/clients/cave/cmd_print_id_masks.cc
index 135c67e..b3d0260 100644
--- a/src/clients/cave/cmd_print_id_masks.cc
+++ b/src/clients/cave/cmd_print_id_masks.cc
@@ -222,3 +222,9 @@ PrintIDMasksCommand::make_doc_cmdline()
return std::make_shared<PrintIDMasksCommandLine>();
}
+CommandImportance
+PrintIDMasksCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_masks.hh b/src/clients/cave/cmd_print_id_masks.hh
index 44701bb..d005ef6 100644
--- a/src/clients/cave/cmd_print_id_masks.hh
+++ b/src/clients/cave/cmd_print_id_masks.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_metadata.cc b/src/clients/cave/cmd_print_id_metadata.cc
index 2b3b78e..3068ea4 100644
--- a/src/clients/cave/cmd_print_id_metadata.cc
+++ b/src/clients/cave/cmd_print_id_metadata.cc
@@ -176,3 +176,9 @@ PrintIDMetadataCommand::make_doc_cmdline()
return std::make_shared<PrintIDMetadataCommandLine>();
}
+CommandImportance
+PrintIDMetadataCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_metadata.hh b/src/clients/cave/cmd_print_id_metadata.hh
index e72bc1c..bc9fa40 100644
--- a/src/clients/cave/cmd_print_id_metadata.hh
+++ b/src/clients/cave/cmd_print_id_metadata.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_id_size.cc b/src/clients/cave/cmd_print_id_size.cc
index 03c3c23..563310d 100644
--- a/src/clients/cave/cmd_print_id_size.cc
+++ b/src/clients/cave/cmd_print_id_size.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -91,3 +91,9 @@ PrintIDSizeCommand::make_doc_cmdline()
return std::make_shared<PrintIDSizeCommandLine>();
}
+CommandImportance
+PrintIDSizeCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_id_size.hh b/src/clients/cave/cmd_print_id_size.hh
index 4da0218..1e31953 100644
--- a/src/clients/cave/cmd_print_id_size.hh
+++ b/src/clients/cave/cmd_print_id_size.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_ids.cc b/src/clients/cave/cmd_print_ids.cc
index eed70f1..4abfa66 100644
--- a/src/clients/cave/cmd_print_ids.cc
+++ b/src/clients/cave/cmd_print_ids.cc
@@ -350,3 +350,9 @@ PrintIDsCommand::make_doc_cmdline()
return std::make_shared<PrintIDsCommandLine>();
}
+CommandImportance
+PrintIDsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_ids.hh b/src/clients/cave/cmd_print_ids.hh
index 5dac138..3cbb7ff 100644
--- a/src/clients/cave/cmd_print_ids.hh
+++ b/src/clients/cave/cmd_print_ids.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_owners.cc b/src/clients/cave/cmd_print_owners.cc
index 15d5afa..6a89ac0 100644
--- a/src/clients/cave/cmd_print_owners.cc
+++ b/src/clients/cave/cmd_print_owners.cc
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2008 Alexander Færøy
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -101,3 +101,9 @@ PrintOwnersCommand::make_doc_cmdline()
return std::make_shared<PrintOwnersCommandLine>();
}
+CommandImportance
+PrintOwnersCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_owners.hh b/src/clients/cave/cmd_print_owners.hh
index 2306419..9b52ec9 100644
--- a/src/clients/cave/cmd_print_owners.hh
+++ b/src/clients/cave/cmd_print_owners.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_packages.cc b/src/clients/cave/cmd_print_packages.cc
index 0fb64d4..f07b76f 100644
--- a/src/clients/cave/cmd_print_packages.cc
+++ b/src/clients/cave/cmd_print_packages.cc
@@ -126,3 +126,9 @@ PrintPackagesCommand::make_doc_cmdline()
{
return std::make_shared<PrintPackagesCommandLine>();
}
+CommandImportance
+PrintPackagesCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_packages.hh b/src/clients/cave/cmd_print_packages.hh
index bea80f5..0628663 100644
--- a/src/clients/cave/cmd_print_packages.hh
+++ b/src/clients/cave/cmd_print_packages.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_repositories.cc b/src/clients/cave/cmd_print_repositories.cc
index 841d0c9..56d14e2 100644
--- a/src/clients/cave/cmd_print_repositories.cc
+++ b/src/clients/cave/cmd_print_repositories.cc
@@ -123,3 +123,9 @@ PrintRepositoriesCommand::make_doc_cmdline()
{
return std::make_shared<PrintRepositoriesCommandLine>();
}
+CommandImportance
+PrintRepositoriesCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_repositories.hh b/src/clients/cave/cmd_print_repositories.hh
index 29a9aed..9f20fd0 100644
--- a/src/clients/cave/cmd_print_repositories.hh
+++ b/src/clients/cave/cmd_print_repositories.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_repository_formats.cc b/src/clients/cave/cmd_print_repository_formats.cc
index 5b89af6..942c9bb 100644
--- a/src/clients/cave/cmd_print_repository_formats.cc
+++ b/src/clients/cave/cmd_print_repository_formats.cc
@@ -94,3 +94,9 @@ PrintRepositoryFormatsCommand::make_doc_cmdline()
{
return std::make_shared<PrintRepositoryFormatsCommandLine>();
}
+CommandImportance
+PrintRepositoryFormatsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_repository_formats.hh b/src/clients/cave/cmd_print_repository_formats.hh
index 5e16be4..71ca244 100644
--- a/src/clients/cave/cmd_print_repository_formats.hh
+++ b/src/clients/cave/cmd_print_repository_formats.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_repository_metadata.cc b/src/clients/cave/cmd_print_repository_metadata.cc
index 2a5aa24..c0a25ca 100644
--- a/src/clients/cave/cmd_print_repository_metadata.cc
+++ b/src/clients/cave/cmd_print_repository_metadata.cc
@@ -148,3 +148,9 @@ PrintRepositoryMetadataCommand::make_doc_cmdline()
return std::make_shared<PrintRepositoryMetadataCommandLine>();
}
+CommandImportance
+PrintRepositoryMetadataCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_repository_metadata.hh b/src/clients/cave/cmd_print_repository_metadata.hh
index 73ed7f2..e07b70d 100644
--- a/src/clients/cave/cmd_print_repository_metadata.hh
+++ b/src/clients/cave/cmd_print_repository_metadata.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_set.cc b/src/clients/cave/cmd_print_set.cc
index eca3131..181d4db 100644
--- a/src/clients/cave/cmd_print_set.cc
+++ b/src/clients/cave/cmd_print_set.cc
@@ -155,3 +155,9 @@ PrintSetCommand::make_doc_cmdline()
return std::make_shared<PrintSetCommandLine>();
}
+CommandImportance
+PrintSetCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_set.hh b/src/clients/cave/cmd_print_set.hh
index 32294fc..270937d 100644
--- a/src/clients/cave/cmd_print_set.hh
+++ b/src/clients/cave/cmd_print_set.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_sets.cc b/src/clients/cave/cmd_print_sets.cc
index 0df75fa..c307bb8 100644
--- a/src/clients/cave/cmd_print_sets.cc
+++ b/src/clients/cave/cmd_print_sets.cc
@@ -90,3 +90,9 @@ PrintSetsCommand::make_doc_cmdline()
{
return std::make_shared<PrintSetsCommandLine>();
}
+CommandImportance
+PrintSetsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_sets.hh b/src/clients/cave/cmd_print_sets.hh
index 14632ab..4a4c33f 100644
--- a/src/clients/cave/cmd_print_sets.hh
+++ b/src/clients/cave/cmd_print_sets.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_spec.cc b/src/clients/cave/cmd_print_spec.cc
index 2c7a2c4..00124bd 100644
--- a/src/clients/cave/cmd_print_spec.cc
+++ b/src/clients/cave/cmd_print_spec.cc
@@ -295,3 +295,9 @@ PrintSpecCommand::make_doc_cmdline()
return std::make_shared<PrintSpecCommandLine>();
}
+CommandImportance
+PrintSpecCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_spec.hh b/src/clients/cave/cmd_print_spec.hh
index e614c4e..b5be4cf 100644
--- a/src/clients/cave/cmd_print_spec.hh
+++ b/src/clients/cave/cmd_print_spec.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_sync_protocols.cc b/src/clients/cave/cmd_print_sync_protocols.cc
index 97a4a6c..d6f1bc1 100644
--- a/src/clients/cave/cmd_print_sync_protocols.cc
+++ b/src/clients/cave/cmd_print_sync_protocols.cc
@@ -115,3 +115,9 @@ PrintSyncProtocolsCommand::make_doc_cmdline()
return std::make_shared<PrintSyncProtocolsCommandLine>();
}
+CommandImportance
+PrintSyncProtocolsCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_sync_protocols.hh b/src/clients/cave/cmd_print_sync_protocols.hh
index ee59e20..2287b61 100644
--- a/src/clients/cave/cmd_print_sync_protocols.hh
+++ b/src/clients/cave/cmd_print_sync_protocols.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_print_unused_distfiles.cc b/src/clients/cave/cmd_print_unused_distfiles.cc
index 59c1552..489a3eb 100644
--- a/src/clients/cave/cmd_print_unused_distfiles.cc
+++ b/src/clients/cave/cmd_print_unused_distfiles.cc
@@ -227,3 +227,9 @@ PrintUnusedDistfilesCommand::make_doc_cmdline()
return std::make_shared<PrintUnusedDistfilesCommandLine>();
}
+CommandImportance
+PrintUnusedDistfilesCommand::importance() const
+{
+ return ci_scripting;
+}
+
diff --git a/src/clients/cave/cmd_print_unused_distfiles.hh b/src/clients/cave/cmd_print_unused_distfiles.hh
index 812ad36..2eb0827 100644
--- a/src/clients/cave/cmd_print_unused_distfiles.hh
+++ b/src/clients/cave/cmd_print_unused_distfiles.hh
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_purge.cc b/src/clients/cave/cmd_purge.cc
index 737df70..b67dc95 100644
--- a/src/clients/cave/cmd_purge.cc
+++ b/src/clients/cave/cmd_purge.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -83,12 +83,6 @@ namespace
};
}
-bool
-PurgeCommand::important() const
-{
- return true;
-}
-
int
PurgeCommand::run(
const std::shared_ptr<Environment> & env,
@@ -123,3 +117,9 @@ PurgeCommand::make_doc_cmdline()
return std::make_shared<PurgeCommandLine>(true);
}
+CommandImportance
+PurgeCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_purge.hh b/src/clients/cave/cmd_purge.hh
index 8fcb857..52e261d 100644
--- a/src/clients/cave/cmd_purge.hh
+++ b/src/clients/cave/cmd_purge.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,14 +30,14 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
);
std::shared_ptr<args::ArgsHandler> make_doc_cmdline();
-
- bool important() const;
};
}
}
diff --git a/src/clients/cave/cmd_report.cc b/src/clients/cave/cmd_report.cc
index 511dabf..2376752 100644
--- a/src/clients/cave/cmd_report.cc
+++ b/src/clients/cave/cmd_report.cc
@@ -152,12 +152,6 @@ namespace
}
}
-bool
-ReportCommand::important() const
-{
- return true;
-}
-
int
ReportCommand::run(
const std::shared_ptr<Environment> & env,
@@ -259,3 +253,9 @@ ReportCommand::make_doc_cmdline()
return std::make_shared<ReportCommandLine>();
}
+CommandImportance
+ReportCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_report.hh b/src/clients/cave/cmd_report.hh
index ca9d925..dcbc57d 100644
--- a/src/clients/cave/cmd_report.hh
+++ b/src/clients/cave/cmd_report.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_resolve.cc b/src/clients/cave/cmd_resolve.cc
index 7845acb..e0a7f2a 100644
--- a/src/clients/cave/cmd_resolve.cc
+++ b/src/clients/cave/cmd_resolve.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -74,12 +74,6 @@ namespace
};
}
-bool
-ResolveCommand::important() const
-{
- return true;
-}
-
int
ResolveCommand::run(
const std::shared_ptr<Environment> & env,
@@ -113,3 +107,9 @@ ResolveCommand::make_doc_cmdline()
return std::make_shared<ResolveCommandLine>();
}
+CommandImportance
+ResolveCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_resolve.hh b/src/clients/cave/cmd_resolve.hh
index f31f9df..4903f8c 100644
--- a/src/clients/cave/cmd_resolve.hh
+++ b/src/clients/cave/cmd_resolve.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_resume.cc b/src/clients/cave/cmd_resume.cc
index 8a32497..48f87df 100644
--- a/src/clients/cave/cmd_resume.cc
+++ b/src/clients/cave/cmd_resume.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -247,12 +247,6 @@ namespace
}
}
-bool
-ResumeCommand::important() const
-{
- return true;
-}
-
int
ResumeCommand::run(
const std::shared_ptr<Environment> & env,
@@ -292,3 +286,9 @@ ResumeCommand::make_doc_cmdline()
return std::make_shared<ResumeCommandLine>();
}
+CommandImportance
+ResumeCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_resume.hh b/src/clients/cave/cmd_resume.hh
index 5750997..463ee5f 100644
--- a/src/clients/cave/cmd_resume.hh
+++ b/src/clients/cave/cmd_resume.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,7 +31,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_search.cc b/src/clients/cave/cmd_search.cc
index dd8476d..1a36dd0 100644
--- a/src/clients/cave/cmd_search.cc
+++ b/src/clients/cave/cmd_search.cc
@@ -254,12 +254,6 @@ namespace
}
}
-bool
-SearchCommand::important() const
-{
- return true;
-}
-
int
SearchCommand::run(
const std::shared_ptr<Environment> & env,
@@ -357,3 +351,9 @@ SearchCommand::make_doc_cmdline()
return std::make_shared<SearchCommandLine>();
}
+CommandImportance
+SearchCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_search.hh b/src/clients/cave/cmd_search.hh
index 391fecb..00a1ade 100644
--- a/src/clients/cave/cmd_search.hh
+++ b/src/clients/cave/cmd_search.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_show.cc b/src/clients/cave/cmd_show.cc
index 5e31344..9b086cf 100644
--- a/src/clients/cave/cmd_show.cc
+++ b/src/clients/cave/cmd_show.cc
@@ -1347,12 +1347,6 @@ namespace
}
}
-bool
-ShowCommand::important() const
-{
- return true;
-}
-
int
ShowCommand::run(
const std::shared_ptr<Environment> & env,
@@ -1433,3 +1427,9 @@ ShowCommand::make_doc_cmdline()
return std::make_shared<ShowCommandLine>();
}
+CommandImportance
+ShowCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_show.hh b/src/clients/cave/cmd_show.hh
index eab97e6..13029d5 100644
--- a/src/clients/cave/cmd_show.hh
+++ b/src/clients/cave/cmd_show.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_size.cc b/src/clients/cave/cmd_size.cc
index ee18932..fed10c2 100644
--- a/src/clients/cave/cmd_size.cc
+++ b/src/clients/cave/cmd_size.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -91,3 +91,9 @@ SizeCommand::make_doc_cmdline()
return std::make_shared<SizeCommandLine>();
}
+CommandImportance
+SizeCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_size.hh b/src/clients/cave/cmd_size.hh
index 9937f79..b4970de 100644
--- a/src/clients/cave/cmd_size.hh
+++ b/src/clients/cave/cmd_size.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_sync.cc b/src/clients/cave/cmd_sync.cc
index 8964974..b8f17b6 100644
--- a/src/clients/cave/cmd_sync.cc
+++ b/src/clients/cave/cmd_sync.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -349,12 +349,6 @@ namespace
}
}
-bool
-SyncCommand::important() const
-{
- return true;
-}
-
int
SyncCommand::run(
const std::shared_ptr<Environment> & env,
@@ -423,3 +417,9 @@ SyncCommand::make_doc_cmdline()
return std::make_shared<SyncCommandLine>();
}
+CommandImportance
+SyncCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_sync.hh b/src/clients/cave/cmd_sync.hh
index f67d1d7..7b18960 100644
--- a/src/clients/cave/cmd_sync.hh
+++ b/src/clients/cave/cmd_sync.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,7 @@ namespace paludis
public Command
{
public:
- bool important() const;
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/cmd_sync_protocol_options.cc b/src/clients/cave/cmd_sync_protocol_options.cc
index 68b6b11..4a089a0 100644
--- a/src/clients/cave/cmd_sync_protocol_options.cc
+++ b/src/clients/cave/cmd_sync_protocol_options.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -120,3 +120,9 @@ SyncProtocolOptionsCommand::make_doc_cmdline()
return std::make_shared<SyncProtocolOptionsCommandLine>();
}
+CommandImportance
+SyncProtocolOptionsCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_sync_protocol_options.hh b/src/clients/cave/cmd_sync_protocol_options.hh
index 2fe5216..00ba259 100644
--- a/src/clients/cave/cmd_sync_protocol_options.hh
+++ b/src/clients/cave/cmd_sync_protocol_options.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_uninstall.cc b/src/clients/cave/cmd_uninstall.cc
index b6a52db..6da009b 100644
--- a/src/clients/cave/cmd_uninstall.cc
+++ b/src/clients/cave/cmd_uninstall.cc
@@ -108,12 +108,6 @@ namespace
}
}
-bool
-UninstallCommand::important() const
-{
- return true;
-}
-
int
UninstallCommand::run(
const std::shared_ptr<Environment> & env,
@@ -199,3 +193,9 @@ UninstallCommand::make_doc_cmdline()
return std::make_shared<UninstallCommandLine>(true);
}
+CommandImportance
+UninstallCommand::importance() const
+{
+ return ci_core;
+}
+
diff --git a/src/clients/cave/cmd_uninstall.hh b/src/clients/cave/cmd_uninstall.hh
index 654cc0b..e9f5c40 100644
--- a/src/clients/cave/cmd_uninstall.hh
+++ b/src/clients/cave/cmd_uninstall.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,14 +30,14 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
);
std::shared_ptr<args::ArgsHandler> make_doc_cmdline();
-
- bool important() const;
};
}
}
diff --git a/src/clients/cave/cmd_update_world.cc b/src/clients/cave/cmd_update_world.cc
index 995c301..08d6553 100644
--- a/src/clients/cave/cmd_update_world.cc
+++ b/src/clients/cave/cmd_update_world.cc
@@ -176,3 +176,9 @@ UpdateWorldCommand::make_doc_cmdline()
return std::make_shared<UpdateWorldCommandLine>();
}
+CommandImportance
+UpdateWorldCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_update_world.hh b/src/clients/cave/cmd_update_world.hh
index ba44dfb..c70352e 100644
--- a/src/clients/cave/cmd_update_world.hh
+++ b/src/clients/cave/cmd_update_world.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/cmd_verify.cc b/src/clients/cave/cmd_verify.cc
index 4d22004..c1a9358 100644
--- a/src/clients/cave/cmd_verify.cc
+++ b/src/clients/cave/cmd_verify.cc
@@ -244,3 +244,9 @@ VerifyCommand::make_doc_cmdline()
return std::make_shared<VerifyCommandLine>();
}
+CommandImportance
+VerifyCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/cmd_verify.hh b/src/clients/cave/cmd_verify.hh
index 6d1b73e..8579214 100644
--- a/src/clients/cave/cmd_verify.hh
+++ b/src/clients/cave/cmd_verify.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,6 +30,8 @@ namespace paludis
public Command
{
public:
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
int run(
const std::shared_ptr<Environment> &,
const std::shared_ptr<const Sequence<std::string > > & args
diff --git a/src/clients/cave/command.cc b/src/clients/cave/command.cc
index d337ba1..659b4c1 100644
--- a/src/clients/cave/command.cc
+++ b/src/clients/cave/command.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -26,9 +26,3 @@ Command::~Command()
{
}
-bool
-Command::important() const
-{
- return false;
-}
-
diff --git a/src/clients/cave/command.hh b/src/clients/cave/command.hh
index 8768f5a..4217144 100644
--- a/src/clients/cave/command.hh
+++ b/src/clients/cave/command.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008 Ciaran McCreesh
+ * Copyright (c) 2008, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -29,12 +29,22 @@ namespace paludis
{
namespace cave
{
+ enum CommandImportance
+ {
+ ci_core,
+ ci_supplemental,
+ ci_development,
+ ci_scripting,
+ ci_internal,
+ last_ci
+ };
+
class PALUDIS_VISIBLE Command
{
public:
virtual ~Command() = 0;
- virtual bool important() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual CommandImportance importance() const PALUDIS_ATTRIBUTE((warn_unused_result)) = 0;
virtual int run(
const std::shared_ptr<Environment> &,
diff --git a/src/clients/cave/command_line.cc b/src/clients/cave/command_line.cc
index a4cbe8f..87cd9e3 100644
--- a/src/clients/cave/command_line.cc
+++ b/src/clients/cave/command_line.cc
@@ -19,6 +19,7 @@
#include "command_line.hh"
#include "command_factory.hh"
+#include <paludis/util/enum_iterator.hh>
using namespace paludis;
using namespace cave;
@@ -56,10 +57,11 @@ CaveCommandLine::CaveCommandLine() :
add_environment_variable("CAVE_COMMANDS_PATH", "Colon-separated paths in which to look for "
"additional commands.");
- for (int pass(0) ; pass != 2 ; ++pass)
+ for (EnumIterator<CommandImportance> i, i_end(last_ci) ;
+ i != i_end ; ++i)
for (CommandFactory::ConstIterator c(CommandFactory::get_instance()->begin()), c_end(CommandFactory::get_instance()->end()) ;
c != c_end ; ++c)
- if (CommandFactory::get_instance()->create(*c)->important() == (0 == pass))
+ if (CommandFactory::get_instance()->create(*c)->importance() == *i)
add_see_also("cave-" + *c, 1);
}
diff --git a/src/clients/cave/script_command.cc b/src/clients/cave/script_command.cc
index e3e0f6d..1990b25 100644
--- a/src/clients/cave/script_command.cc
+++ b/src/clients/cave/script_command.cc
@@ -84,3 +84,9 @@ ScriptCommand::make_doc_cmdline()
throw InternalError(PALUDIS_HERE, "no script cmdline");
}
+CommandImportance
+ScriptCommand::importance() const
+{
+ return ci_supplemental;
+}
+
diff --git a/src/clients/cave/script_command.hh b/src/clients/cave/script_command.hh
index 1ee4a2c..39132fc 100644
--- a/src/clients/cave/script_command.hh
+++ b/src/clients/cave/script_command.hh
@@ -43,6 +43,8 @@ namespace paludis
const std::shared_ptr<const Sequence<std::string > > & args
) PALUDIS_ATTRIBUTE((noreturn));
+ virtual CommandImportance importance() const;
+
std::shared_ptr<args::ArgsHandler> make_doc_cmdline() PALUDIS_ATTRIBUTE((noreturn));
};
}