1{ 2 "ls": { 3 "arg_name": "--ls", 4 "argDefault": [], 5 "arg_help": "Default:[]. Help:Lists all targets matching the given pattern for the given build directory. You could use this option like this: 1.'hb tool --ls <out_dir> [<label_pattern>] [<options>]'", 6 "arg_phase": "prebuild", 7 "arg_type": "subparsers", 8 "arg_attribute": { 9 "support_sub_options":{ 10 "all-toolchains":{ 11 "arg_name": "--all-toolchains", 12 "argDefault": false, 13 "arg_help": "", 14 "arg_phase": "prebuild", 15 "arg_type": "bool", 16 "arg_attribute": {}, 17 "resolve_function": "", 18 "testFunction": "" 19 }, 20 "as":{ 21 "arg_name": "--as", 22 "argDefault": "", 23 "arg_help": "", 24 "arg_phase": "prebuild", 25 "arg_type": "str", 26 "arg_attribute": { 27 "optional":[ 28 "buildfile", 29 "label", 30 "output" 31 ] 32 }, 33 "resolve_function": "", 34 "testFunction": "" 35 }, 36 "testonly":{ 37 "arg_name": "--testonly", 38 "argDefault": "", 39 "arg_help": "", 40 "arg_phase": "prebuild", 41 "arg_type": "str", 42 "arg_attribute": { 43 "optional":[ 44 "true", 45 "false" 46 ] 47 }, 48 "resolve_function": "", 49 "testFunction": "" 50 }, 51 "type":{ 52 "arg_name": "--type", 53 "argDefault": "", 54 "arg_help": "", 55 "arg_phase": "prebuild", 56 "arg_type": "str", 57 "arg_attribute": { 58 "optional":[ 59 "action", 60 "copy", 61 "executable", 62 "group", 63 "loadable_module", 64 "shared_library", 65 "source_set", 66 "static_library" 67 ] 68 }, 69 "resolve_function": "", 70 "testFunction": "" 71 } 72 } 73 }, 74 "resolve_function": "resolve_list_targets", 75 "testFunction": "testListTargets" 76 }, 77 "desc": { 78 "arg_name": "--desc", 79 "argDefault": [], 80 "arg_help": "Default:[]. Help:Displays information about a given target or config. You could use this option like this: 1.'hb tool --desc <out_dir> <component_module> [<what to show>] [<options>]'", 81 "arg_phase": "prebuild", 82 "arg_type": "subparsers", 83 "arg_attribute": { 84 "support_sub_options":{ 85 "all":{ 86 "arg_name": "--all", 87 "argDefault": false, 88 "arg_help": "", 89 "arg_phase": "prebuild", 90 "arg_type": "bool", 91 "arg_attribute": {}, 92 "resolve_function": "", 93 "testFunction": "" 94 }, 95 "as":{ 96 "arg_name": "--as", 97 "argDefault": "", 98 "arg_help": "", 99 "arg_phase": "prebuild", 100 "arg_type": "str", 101 "arg_attribute": { 102 "optional":[ 103 "buildfile", 104 "label", 105 "output" 106 ] 107 }, 108 "resolve_function": "", 109 "testFunction": "" 110 }, 111 "testonly":{ 112 "arg_name": "--testonly", 113 "argDefault": "", 114 "arg_help": "", 115 "arg_phase": "prebuild", 116 "arg_type": "str", 117 "arg_attribute": { 118 "optional":[ 119 "true", 120 "false" 121 ] 122 }, 123 "resolve_function": "", 124 "testFunction": "" 125 }, 126 "type":{ 127 "arg_name": "--type", 128 "argDefault": "", 129 "arg_help": "", 130 "arg_phase": "prebuild", 131 "arg_type": "str", 132 "arg_attribute": { 133 "optional":[ 134 "action", 135 "copy", 136 "executable", 137 "group", 138 "loadable_module", 139 "shared_library", 140 "source_set", 141 "static_library" 142 ] 143 }, 144 "resolve_function": "", 145 "testFunction": "" 146 }, 147 "tree":{ 148 "arg_name": "--tree", 149 "argDefault": false, 150 "arg_help": "", 151 "arg_phase": "prebuild", 152 "arg_type": "bool", 153 "arg_attribute": {}, 154 "resolve_function": "", 155 "testFunction": "" 156 } 157 } 158 }, 159 "resolve_function": "resolve_desc_targets", 160 "testFunction": "testDescTargets" 161 }, 162 "path": { 163 "arg_name": "--path", 164 "argDefault": [], 165 "arg_help": "Default:[]. Help:Finds paths of dependencies between two targets. You could use this option like this: 1.'hb tool --path <out_dir> <component1_module1> <component2_module2> [<options>]'", 166 "arg_phase": "prebuild", 167 "arg_type": "subparsers", 168 "arg_attribute": { 169 "support_sub_options":{ 170 "--all":[], 171 "--public":[], 172 "--with-data":[] 173 } 174 }, 175 "resolve_function": "resolve_path_targets", 176 "testFunction": "testPathTargets" 177 }, 178 "refs": { 179 "arg_name": "--refs", 180 "argDefault": [], 181 "arg_help": "Default:[]. Help:Finds reverse dependencies (which targets reference something). You could use this option like this: 1.'hb tool --refs <out_dir> [<component_module>|<file>] [<options>]'", 182 "arg_phase": "prebuild", 183 "arg_type": "subparsers", 184 "arg_attribute": { 185 "support_sub_options":{ 186 "all":{ 187 "arg_name": "--all", 188 "argDefault": false, 189 "arg_help": "", 190 "arg_phase": "prebuild", 191 "arg_type": "bool", 192 "arg_attribute": {}, 193 "resolve_function": "", 194 "testFunction": "" 195 }, 196 "all-toolchains":{ 197 "arg_name": "--all-toolchains", 198 "argDefault": false, 199 "arg_help": "", 200 "arg_phase": "prebuild", 201 "arg_type": "bool", 202 "arg_attribute": {}, 203 "resolve_function": "", 204 "testFunction": "" 205 }, 206 "as":{ 207 "arg_name": "--as", 208 "argDefault": "", 209 "arg_help": "", 210 "arg_phase": "prebuild", 211 "arg_type": "str", 212 "arg_attribute": { 213 "optional":[ 214 "buildfile", 215 "label", 216 "output" 217 ] 218 }, 219 "resolve_function": "", 220 "testFunction": "" 221 }, 222 "q":{ 223 "arg_name": "-q", 224 "argDefault": false, 225 "arg_help": "", 226 "arg_phase": "prebuild", 227 "arg_type": "bool", 228 "arg_attribute": {}, 229 "resolve_function": "", 230 "testFunction": "" 231 }, 232 "testonly":{ 233 "arg_name": "--testonly", 234 "argDefault": "", 235 "arg_help": "", 236 "arg_phase": "prebuild", 237 "arg_type": "str", 238 "arg_attribute": { 239 "optional":[ 240 "true", 241 "false" 242 ] 243 }, 244 "resolve_function": "", 245 "testFunction": "" 246 }, 247 "tree":{ 248 "arg_name": "--tree", 249 "argDefault": false, 250 "arg_help": "", 251 "arg_phase": "prebuild", 252 "arg_type": "bool", 253 "arg_attribute": {}, 254 "resolve_function": "", 255 "testFunction": "" 256 }, 257 "type":{ 258 "arg_name": "--type", 259 "argDefault": "", 260 "arg_help": "", 261 "arg_phase": "prebuild", 262 "arg_type": "str", 263 "arg_attribute": { 264 "optional":[ 265 "action", 266 "copy", 267 "executable", 268 "group", 269 "loadable_module", 270 "shared_library", 271 "source_set", 272 "static_library" 273 ] 274 }, 275 "resolve_function": "", 276 "testFunction": "" 277 } 278 } 279 }, 280 "resolve_function": "resolve_refs_targets", 281 "testFunction": "testRefsTargets" 282 }, 283 "format": { 284 "arg_name": "--format", 285 "argDefault": [], 286 "arg_help": "Default:[]. Help:Formats .gn file to a standard format. You could use this option like this: 1.'hb tool --format /abspath/some/BUILD.gn [<options>]'", 287 "arg_phase": "prebuild", 288 "arg_type": "subparsers", 289 "arg_attribute": { 290 "support_sub_options":{ 291 "dry-run":{ 292 "arg_name": "--dry-run", 293 "argDefault": false, 294 "arg_help": "", 295 "arg_phase": "prebuild", 296 "arg_type": "bool", 297 "arg_attribute": {}, 298 "resolve_function": "", 299 "testFunction": "" 300 }, 301 "dump-tree":{ 302 "arg_name": "--dump-tree", 303 "argDefault": "text", 304 "arg_help": "", 305 "arg_phase": "prebuild", 306 "arg_type": "str", 307 "arg_attribute": { 308 "optional":[ 309 "text", 310 "json" 311 ] 312 }, 313 "resolve_function": "", 314 "testFunction": "" 315 }, 316 "stdin":{ 317 "arg_name": "--stdin", 318 "argDefault": false, 319 "arg_help": "", 320 "arg_phase": "prebuild", 321 "arg_type": "bool", 322 "arg_attribute": {}, 323 "resolve_function": "", 324 "testFunction": "" 325 } 326 } 327 }, 328 "resolve_function": "resolve_format_targets", 329 "testFunction": "testFormatTargets" 330 }, 331 "clean": { 332 "arg_name": "--clean", 333 "argDefault": "", 334 "arg_help": "Default:[]. Help:Deletes the contents of the output directory except for args.gn. You could use this option like this: 1.'hb tool --clean <out_dir>'", 335 "arg_phase": "prebuild", 336 "arg_type": "str", 337 "arg_attribute": {}, 338 "resolve_function": "resolve_clean_targets", 339 "testFunction": "testCleanTargets" 340 } 341}