| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TOOLS_GN_COMMANDS_H_ | 5 #ifndef TOOLS_GN_COMMANDS_H_ |
| 6 #define TOOLS_GN_COMMANDS_H_ | 6 #define TOOLS_GN_COMMANDS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 extern const char kHelp[]; | 61 extern const char kHelp[]; |
| 62 extern const char kHelp_HelpShort[]; | 62 extern const char kHelp_HelpShort[]; |
| 63 extern const char kHelp_Help[]; | 63 extern const char kHelp_Help[]; |
| 64 int RunHelp(const std::vector<std::string>& args); | 64 int RunHelp(const std::vector<std::string>& args); |
| 65 | 65 |
| 66 extern const char kLs[]; | 66 extern const char kLs[]; |
| 67 extern const char kLs_HelpShort[]; | 67 extern const char kLs_HelpShort[]; |
| 68 extern const char kLs_Help[]; | 68 extern const char kLs_Help[]; |
| 69 int RunLs(const std::vector<std::string>& args); | 69 int RunLs(const std::vector<std::string>& args); |
| 70 | 70 |
| 71 extern const char kPath[]; |
| 72 extern const char kPath_HelpShort[]; |
| 73 extern const char kPath_Help[]; |
| 74 int RunPath(const std::vector<std::string>& args); |
| 75 |
| 71 extern const char kRefs[]; | 76 extern const char kRefs[]; |
| 72 extern const char kRefs_HelpShort[]; | 77 extern const char kRefs_HelpShort[]; |
| 73 extern const char kRefs_Help[]; | 78 extern const char kRefs_Help[]; |
| 74 int RunRefs(const std::vector<std::string>& args); | 79 int RunRefs(const std::vector<std::string>& args); |
| 75 | 80 |
| 76 // ----------------------------------------------------------------------------- | 81 // ----------------------------------------------------------------------------- |
| 77 | 82 |
| 78 struct CommandInfo { | 83 struct CommandInfo { |
| 79 CommandInfo(); | 84 CommandInfo(); |
| 80 CommandInfo(const char* in_help_short, | 85 CommandInfo(const char* in_help_short, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // If indent is true, the results will be indented two spaces. | 172 // If indent is true, the results will be indented two spaces. |
| 168 // | 173 // |
| 169 // The vector will be modified so that only the printed targets will remain. | 174 // The vector will be modified so that only the printed targets will remain. |
| 170 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); | 175 void FilterAndPrintTargets(bool indent, std::vector<const Target*>* targets); |
| 171 void FilterAndPrintTargetSet(bool indent, | 176 void FilterAndPrintTargetSet(bool indent, |
| 172 const std::set<const Target*>& targets); | 177 const std::set<const Target*>& targets); |
| 173 | 178 |
| 174 } // namespace commands | 179 } // namespace commands |
| 175 | 180 |
| 176 #endif // TOOLS_GN_COMMANDS_H_ | 181 #endif // TOOLS_GN_COMMANDS_H_ |
| OLD | NEW |