genehack / HiD

Static website generation system *NOTE:* Main dev mirror at https://git.genehack.net/genehack/hid
28 stars 12 forks source link

hid should do something useful by default #8

Closed genehack closed 6 months ago

genehack commented 11 years ago

Instead of doing this:

% bin/hid                                                                                                                                                   master ✗ ✹ 14:58:54
WARNING: Could not read configuration. Using defaults (and options).
Attribute (layout_dir) does not pass the type constraint because: Validation failed for 'HiD_DirPath' with value "_layouts" at reader HiD::layout_dir (defined at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 264) line 8.
        HiD::layout_dir(HiD=HASH(0x7f8095095238)) called at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 292
        HiD::_build_layouts(HiD=HASH(0x7f8095095238)) called at reader HiD::layouts (defined at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 278) line 7
        HiD::layouts(HiD=HASH(0x7f8095095238)) called at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 532
        HiD::_build_posts(HiD=HASH(0x7f8095095238)) called at reader HiD::posts (defined at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 521) line 7
        HiD::posts(HiD=HASH(0x7f8095095238)) called at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 399
        HiD::_build_pages(HiD=HASH(0x7f8095095238)) called at reader HiD::pages (defined at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 388) line 7
        HiD::pages(HiD=HASH(0x7f8095095238)) called at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 641
        HiD::_build_regular_files(HiD=HASH(0x7f8095095238)) called at reader HiD::regular_files (defined at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 630) line 7
        HiD::regular_files(HiD=HASH(0x7f8095095238)) called at /Users/genehack/proj/HiD/bin/../lib/HiD.pm line 754
        HiD::publish(HiD=HASH(0x7f8095095238)) called at /opt/perl/perls/perl-5.18.0/lib/site_perl/5.18.0/darwin-2level/Moose/Meta/Method/Delegation.pm line 110
        HiD::App::Command::publish(HiD::App::Command::publish=HASH(0x7f8095095100)) called at /Users/genehack/proj/HiD/bin/../lib/HiD/App/Command/publish.pm line 57
        HiD::App::Command::publish::_run(HiD::App::Command::publish=HASH(0x7f8095095100), HASH(0x7f8094fcb330), ARRAY(0x7f8093c6a140)) called at /Users/genehack/proj/HiD/bin/../lib/HiD/App/Command.pm line 85
        HiD::App::Command::execute(HiD::App::Command::publish=HASH(0x7f8095095100), HASH(0x7f8094fcb330), ARRAY(0x7f8093c6a140)) called at /opt/perl/perls/perl-5.18.0/lib/site_perl/5.18.0/App/Cmd.pm line 282
        App::Cmd::execute_command(HiD::App=HASH(0x7f80918283f0), HiD::App::Command::publish=HASH(0x7f8095095100), HASH(0x7f8094fcb330)) called at /opt/perl/perls/perl-5.18.0/lib/site_perl/5.18.0/App/Cmd.pm line 210
        App::Cmd::run("HiD::App") called at bin/hid line 12