« blib/lib/UR/Namespace/Command/Init.pm
↑ Summary
blib/lib/UR/Namespace/Command/Show/Properties.pm »
| 1 | |||
| 2 | package UR::Namespace::Command::Old::Redescribe; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | use UR; | ||
| 7 | our $VERSION = "0.46"; # UR $VERSION; | ||
| 8 | |||
| 9 | UR::Object::Type->define( | ||
| 10 | class_name => __PACKAGE__, | ||
| 11 | is => 'UR::Namespace::Command::RunsOnModulesInTree', | ||
| 12 | ); | ||
| 13 | |||
| 14 | sub help_brief { | ||
| 15 | "Outputs class description(s) formatted to the latest standard." | ||
| 16 | } | ||
| 17 | |||
| 18 | sub for_each_class_object { | ||
| 19 | my $self = shift; | ||
| 20 | my $class = shift; | ||
| 21 | my $src = $class->resolve_module_header_source; | ||
| 22 | if ($src) { | ||
| 23 | print $src, "\n"; | ||
| 24 | return 1; | ||
| 25 | } | ||
| 26 | else { | ||
| 27 | print STDERR "No source for $class!"; | ||
| 28 | return; | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 32 | 1; | ||
| 33 |