Coder Social home page Coder Social logo

hid's Introduction

hid's People

Contributors

fenderchamp avatar genehack avatar kyzn avatar reyjrar avatar sergeyromanov avatar wchristian avatar yanick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hid's Issues

`hid` outside a project could deliver a better error

$ hid
Could not read configuration. Using defaults (and options). at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 93.
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/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 178) line 8.
HiD::layout_dir('HiD=HASH(0x7ffcd5b3ebe0)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 197
HiD::_build_layouts('HiD=HASH(0x7ffcd5b3ebe0)') called at reader HiD::layouts (defined at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 181) line 7
HiD::layouts('HiD=HASH(0x7ffcd5b3ebe0)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 377
HiD::_build_posts('HiD=HASH(0x7ffcd5b3ebe0)') called at reader HiD::posts (defined at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 364) line 7
HiD::posts('HiD=HASH(0x7ffcd5b3ebe0)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 270
HiD::_build_pages('HiD=HASH(0x7ffcd5b3ebe0)') called at reader HiD::pages (defined at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 259) line 7
HiD::pages('HiD=HASH(0x7ffcd5b3ebe0)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 470
HiD::_build_regular_files('HiD=HASH(0x7ffcd5b3ebe0)') called at reader HiD::regular_files (defined at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 459) line 7
HiD::regular_files('HiD=HASH(0x7ffcd5b3ebe0)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 571
HiD::publish('HiD=HASH(0x7ffcd5b3ebe0)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/darwin-2level/Moose/Meta/Method/Delegation.pm line 110
HiD::App::Command::publish('HiD::App::Command::publish=HASH(0x7ffcd5b3ed90)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD/App/Command/publish.pm line 39
HiD::App::Command::publish::_run('HiD::App::Command::publish=HASH(0x7ffcd5b3ed90)', 'HASH(0x7ffcd4ee4760)', 'ARRAY(0x7ffcd16848e8)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD/App/Command.pm line 68
HiD::App::Command::execute('HiD::App::Command::publish=HASH(0x7ffcd5b3ed90)', 'HASH(0x7ffcd4ee4760)', 'ARRAY(0x7ffcd16848e8)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/App/Cmd.pm line 282
App::Cmd::execute_command('HiD::App=HASH(0x7ffcd0827c08)', 'HiD::App::Command::publish=HASH(0x7ffcd5b3ed90)', 'HASH(0x7ffcd4ee4760)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/App/Cmd.pm line 210
App::Cmd::run('HiD::App') called at /Users/sartak/.perl/perls/perl-5.18.1/bin/hid line 12

PR Challenge March 2016

Hey @genehack,

I was given your module as my march assignment for the PR Challenge! I've taken a quick look at the repo and it looks like there is a TODO file and lots of issues I could potentially work on. Do you have a preference for what I should work on?

xslate issues should ideally cause a non-zero exit status

for example, if there's something along these lines:

----------------------------------------------------------------------------
Text::Xslate: Iterating data must be an ARRAY reference, not 'foobar' (/Users/genehack/site/_includes/post.tx:12) at /opt/plenv/versions/5.22.0/lib/perl5/site_perl/5.22.0/darwin-2level/Moose/Meta/Method/Delegation.pm line 110.
----------------------------------------------------------------------------

it would be nice if the publish command would non-zero exit.

(Or maybe publish should have a strict flag, or something...)

Add 'current year' to page metadata

Actually, a full set of date metadata would be useful.

Having the year is good for copyright dates, but somebody may want to put a 'last changed' timestamp on a page too.

hid needs docs

17:55 <@doy> the HiD module description says that you probably want to look at the documentation for the hid script
17:55 <@doy> but the hid script has no documentation
17:56 <@genehack> hmm, i thought i fixed that
17:56 <@genehack> guess not.

`hid server` unable to find object method "clean"; dies

HiD 1.5 with Perl 5.20.0 on Ubuntu 14.04

$ cd hid-blog
$ hid server
Can't locate object method "clean" via package "HiD::App::Command::server" at /home/random/localperl/lib/site_perl/5.20.0/HiD/App/Command/server.pm line 58.
$

Making HiD::App::Command::server extend HiD::App::Command::publish is one way to make this problem go away

run "hid publish" failed

hi.
as3:/hid-site/t/jekyll_test_source# hid publish
Could not read configuration. Using defaults (and options). at /usr/lib/perl5/site_perl/5.14.0/HiD.pm line 89.
[2014/06/08 09:18:47] WARN Skipping _posts/2008-02-02-not-published.textile because 'published' flag is false
Skipping _posts/2008-02-02-not-published.textile because 'published' flag is false at /usr/lib/perl5/site_perl/5.14.0/i686-linux/Moose/Meta/Method/Delegation.pm line 112
[2014/06/08 09:18:47] ERROR ERROR: Post failed to build: Died at /usr/lib/perl5/site_perl/5.14.0/HiD/Post.pm line 37.
as3:
/hid-site/t/jekyll_test_source#

hwo to fix it?
tks

File objects have path generation issues (maybe Win32 specific)

In particular, it seems like $file->input_filename is ending up as an absolute path on Win32, which makes _build_url() generate nonsense paths (like C:\foo\bar\C:\foo\bar\baz.html) which leads to other things barfing down the road.

Probably worth documenting the relationship between input_filename, dest_dir, and url for different object types on *nix and Win32 and seeing what the pattern is.

Improve code coverage

Recent code changes don't have good tests -- write them (or at least get more specifics about what needs to be developed).

attribute type constraint failure occurs during test

This is just the output of one of the errors but all command classes fail.

#   Failed test 'HiD/App/Command.pm loaded ok'
#   at t/00-compile.t line 64.
#          got: '65280'
#     expected: '0'
Attribute (type) does not pass the type constraint because: Validation failed for 'Moose::Meta::TypeConstraint' with value Attribute (not isa Moose::Meta::TypeConstraint) at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 37
    Moose::Exception::_build_trace('Moose::Exception::ValidationFailedForTypeConstraint=HASH(0x4fae890)') called at reader Moose::Exception::trace (defined at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 9) line 7
    Moose::Exception::trace('Moose::Exception::ValidationFailedForTypeConstraint=HASH(0x4fae890)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exception.pm line 49
    Moose::Exception::BUILD('Moose::Exception::ValidationFailedForTypeConstraint=HASH(0x4fae890)', 'HASH(0x4fae7e8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Class/MOP/Method.pm line 128
    Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x4fa8e58)', 'Moose::Exception::ValidationFailedForTypeConstraint=HASH(0x4fae890)', 'HASH(0x4fae7e8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 56
    Moose::Object::BUILDALL('Moose::Exception::ValidationFailedForTypeConstraint=HASH(0x4fae890)', 'HASH(0x4fae7e8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class.pm line 282
    Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x4fb6ed0)', 'HASH(0x4fae7e8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 27
    Moose::Object::new('Moose::Exception::ValidationFailedForTypeConstraint', 'type', 'Moose::Meta::TypeConstraint::Class=HASH(0x4fa8858)', 'value', 'Attribute', 'attribute', 'Moose::Meta::Attribute=HASH(0x4faa798)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Util.pm line 51
    Moose::Util::throw_exception('ValidationFailedForTypeConstraint', 'type', 'Moose::Meta::TypeConstraint::Class=HASH(0x4fa8858)', 'value', 'Attribute', 'attribute', 'Moose::Meta::Attribute=HASH(0x4faa798)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Attribute.pm line 1267
    Moose::Meta::Attribute::verify_against_type_constraint('Moose::Meta::Attribute=HASH(0x4faa798)', 'Attribute', 'instance', 'Moose::Exception::CannotLocatePackageInINC=HASH(0x4b2cda0)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Attribute.pm line 1254
    Moose::Meta::Attribute::_coerce_and_verify('Moose::Meta::Attribute=HASH(0x4faa798)', 'Attribute', 'Moose::Exception::CannotLocatePackageInINC=HASH(0x4b2cda0)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Attribute.pm line 514
    Moose::Meta::Attribute::initialize_instance_slot('Moose::Meta::Attribute=HASH(0x4faa798)', 'Moose::Meta::Instance=HASH(0x4fb69f0)', 'Moose::Exception::CannotLocatePackageInINC=HASH(0x4b2cda0)', 'HASH(0x33be9a8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Class/MOP/Class.pm line 529
    Class::MOP::Class::_construct_instance('Moose::Meta::Class=HASH(0x4b2cb90)', 'HASH(0x33be9a8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Class/MOP/Class.pm line 499
    Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x4b2cb90)', 'HASH(0x33be9a8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class.pm line 278
    Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x4b2cb90)', 'HASH(0x33be9a8)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Object.pm line 27
    Moose::Object::new('Moose::Exception::CannotLocatePackageInINC', 'possible_packages', 'Getopt or Moose::Meta::Attribute::Custom::Trait::Getopt', 'INC', 'ARRAY(0x2490ea8)', 'type', 'Attribute', 'metaclass_name', 'Getopt', 'params', 'HASH(0x27dfa30)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Util.pm line 51
    Moose::Util::throw_exception('CannotLocatePackageInINC', 'possible_packages', 'Getopt or Moose::Meta::Attribute::Custom::Trait::Getopt', 'INC', 'ARRAY(0x2490ea8)', 'type', 'Attribute', 'metaclass_name', 'Getopt', 'params', 'HASH(0x27dfa30)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Util.pm line 243
    Moose::Util::resolve_metaclass_alias('Attribute', 'Getopt', 'trait', 1) called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Util.pm line 205
    Moose::Util::resolve_metatrait_alias('Attribute', 'Getopt') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Attribute.pm line 131
    Moose::Meta::Attribute::interpolate_class('Moose::Meta::Attribute', 'HASH(0x2f05278)') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Attribute.pm line 100
    Moose::Meta::Attribute::interpolate_class_and_new('Moose::Meta::Attribute', 'config_file', 'definition_context', 'HASH(0x4d420b0)', 'is', 'ro', 'isa', 'Str', 'cmd_aliases', 'f', 'traits', 'ARRAY(0x3264440)', 'default', '_config.yml') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class.pm line 716
    Moose::Meta::Class::_process_new_attribute('Moose::Meta::Class=HASH(0x30f8ce0)', 'config_file', 'definition_context', 'HASH(0x4d420b0)', 'is', 'ro', 'isa', 'Str', 'cmd_aliases', 'f', 'traits', 'ARRAY(0x3264440)', 'default', '_config.yml') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class.pm line 709
    Moose::Meta::Class::_process_attribute('Moose::Meta::Class=HASH(0x30f8ce0)', 'config_file', 'definition_context', 'HASH(0x4d420b0)', 'is', 'ro', 'isa', 'Str', 'cmd_aliases', 'f', 'traits', 'ARRAY(0x3264440)', 'default', '_config.yml') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Meta/Class.pm line 573
    Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x30f8ce0)', 'config_file', 'definition_context', 'HASH(0x4d420b0)', 'is', 'ro', 'isa', 'Str', 'cmd_aliases', 'f', 'traits', 'ARRAY(0x3264440)', 'default', '_config.yml') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose.pm line 77
    Moose::has('Moose::Meta::Class=HASH(0x30f8ce0)', 'config_file', 'is', 'ro', 'isa', 'Str', 'cmd_aliases', 'f', 'traits', 'ARRAY(0x3264440)', 'default', '_config.yml') called at /home/adam/.plenv/versions/prod/lib/perl5/site_perl/5.18.2/x86_64-linux/Moose/Exporter.pm line 405
    Moose::has('config_file', 'is', 'ro', 'isa', 'Str', 'cmd_aliases', 'f', 'traits', 'ARRAY(0x3264440)', 'default', '_config.yml') called at /home/adam/dev/HiD/.build/tfDHyVhNao/blib/lib/HiD/App/Command.pm line 24
    require HiD/App/Command.pm at -e line 1
Compilation failed in require at -e line 1.

Unicode in YAML front matter blows up

If there are any UTF-8 chars in the YAML front matter, HiD will blow chunks.

In Role::IsConverted, when passing the front matter data into Load(), it probably needs to be UTF8-encoded first.

mkdir for me

Seems like HiD could mkdir the destination for me if it doesn't exist, instead of blowing up with this obscure error :)

Attribute (destination) does not pass the type constraint because: Validation failed for 'HiD_DirPath' with value ../OTHERREPO/NONEXISTENT/ at constructor Tags::new (defined at _plugins/Tags.pm line 7) line 38.
Tags::new('Tags') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 342
HiD::_build_plugins('HiD=HASH(0x7fc73f992d60)') called at reader HiD::plugins (defined at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 311) line 7
HiD::plugins('HiD=HASH(0x7fc73f992d60)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD.pm line 579
HiD::publish('HiD=HASH(0x7fc73f992d60)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/darwin-2level/Moose/Meta/Method/Delegation.pm line 110
HiD::App::Command::publish('HiD::App::Command::publish=HASH(0x7fc73fe50178)') called at /Users/sartak/.perl/perls/perl-5.18.1/lib/site_perl/5.18.1/HiD/App/Command/publish.pm line 39

'hid server -A' is busted

Error while loading /Users/genehack/ii/iinteractive.com/REF(0x7f87a0122528): No such file or directory at (eval 620) line 4.

clean up deps

Convert everything possible to Path::Tiny, make sure all listed modules are being used, etc.

hid should do something useful by default

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

hid publish not processing to html?

  1. installed HiD-1.98

  2. in newly created dir (~/temp/hid) ran 'hid init'

  3. edited _config.yaml to have url: 'http://localhost:5000'

  4. created index.mkdn

  5. edited index.mkdn to contain:

    layout: default

    title: Hello, World!

    Hello World, should be h1

  6. Then created dir _posts

  7. in _posts created file 1999-09-09-first-post.html (from HiD::App::Command::init example/sub ( https://metacpan.org/source/GENEHACK/HiD-1.98/lib/HiD/App/Command/init.pm )

  8. edited file from step 7 to have content per example sub noted in step 7.

  9. cd ~/temp/hid

  10. ran 'hid publish'

  11. ran 'hid server'

  12. went to browser and checked http://localhost:5000 to see how index.html rendered. Got [% content %]. This is the from _layouts/default.html

  13. checked http://localhost:5000/1999/09/09/first-post.html and also go t [% content %] which I think is more wrong since the sub/example in step 7. creates a layout for post.html that has more stuff that should be displayed.

  14. as noted on irc chat I have a repo of this hellow world example at https://github.com/gizmomathboy/hid_hello_world

Hopefully enough detail (that is mostly the steps I followed) to recreate what I am seeing.

Add page editing capability

It was be great if we could add an editing capability.

My idea is to add better route handling and post request support.

We could watch for an /edit url, load an edit template with a form, update it, post it up, and edit
the underlying markdown file.

Hide stack trace when running hid without arguments

I'd like to suggest that running hid without any arguments should show usage information instead of a stack trace

Now (hid version 1.1, as of 8cd404a):

$ hid
Could not read configuration. Using defaults (and options). at /home/sjn/perl5/lib/perl5/HiD.pm line 94.
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 /home/sjn/perl5/lib/perl5/HiD.pm line 179) line 8.
        HiD::layout_dir(HiD=HASH(0x3ed3798)) called at /home/sjn/perl5/lib/perl5/HiD.pm line 198
        HiD::_build_layouts(HiD=HASH(0x3ed3798)) called at reader HiD::layouts (defined at /home/sjn/perl5/lib/perl5/HiD.pm line 182) line 7
        HiD::layouts(HiD=HASH(0x3ed3798)) called at /home/sjn/perl5/lib/perl5/HiD.pm line 400
        HiD::_build_posts(HiD=HASH(0x3ed3798)) called at reader HiD::posts (defined at /home/sjn/perl5/lib/perl5/HiD.pm line 387) line 7
        HiD::posts(HiD=HASH(0x3ed3798)) called at /home/sjn/perl5/lib/perl5/HiD.pm line 271
        HiD::_build_pages(HiD=HASH(0x3ed3798)) called at reader HiD::pages (defined at /home/sjn/perl5/lib/perl5/HiD.pm line 260) line 7
        HiD::pages(HiD=HASH(0x3ed3798)) called at /home/sjn/perl5/lib/perl5/HiD.pm line 493
        HiD::_build_regular_files(HiD=HASH(0x3ed3798)) called at reader HiD::regular_files (defined at /home/sjn/perl5/lib/perl5/HiD.pm line 482) line 7
        HiD::regular_files(HiD=HASH(0x3ed3798)) called at /home/sjn/perl5/lib/perl5/HiD.pm line 594
        HiD::publish(HiD=HASH(0x3ed3798)) called at /home/sjn/perl5/lib/perl5/x86_64-linux/Moose/Meta/Method/Delegation.pm line 110
        HiD::App::Command::publish(HiD::App::Command::publish=HASH(0x3ed3930)) called at /home/sjn/perl5/lib/perl5/HiD/App/Command/publish.pm line 39
        HiD::App::Command::publish::_run(HiD::App::Command::publish=HASH(0x3ed3930), HASH(0x3d5ecd8), ARRAY(0x1f16920)) called at /home/sjn/perl5/lib/perl5/HiD/App/Command.pm line 68
        HiD::App::Command::execute(HiD::App::Command::publish=HASH(0x3ed3930), HASH(0x3d5ecd8), ARRAY(0x1f16920)) called at /home/sjn/perl5/lib/perl5/App/Cmd.pm line 282
        App::Cmd::execute_command(HiD::App=HASH(0xf22680), HiD::App::Command::publish=HASH(0x3ed3930), HASH(0x3d5ecd8)) called at /home/sjn/perl5/lib/perl5/App/Cmd.pm line 210
        App::Cmd::run("HiD::App") called at /home/sjn/perl5/bin/hid line 12

My suggestion:

$ hid
Could not read default configuration file '_default.yml'.

Available commands:

  commands: list the application's commands
      help: display a command's help screen

      init: initialize a new site
    config: dump configuration
   publish: publish site
    server: HiD 'server' subcmd - start a Plack-based web server for your site

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.