~mclehman/app-ryomod

a36d1e8ed5a96becc3654ec66ca9d097d63f67e8 — 0xFORDCOMMA 3 years ago 6c0304e
Fix bugs pertaining to name metadata and CLI dispatch.
2 files changed, 7 insertions(+), 7 deletions(-)

M META6.json
M bin/ryomod
M META6.json => META6.json +2 -2
@@ 1,5 1,5 @@
{
  "api": 3,
  "api": 4,
  "depends": [
    "JSON::Fast",
    "Version::Chronological::Ryov",


@@ 16,5 16,5 @@
  "scripts": {
    "test": "zef test ."
  },
  "version": "2020.01.07.1"
  "version": "2020.01.08-break"
}
\ No newline at end of file

M bin/ryomod => bin/ryomod +5 -5
@@ 29,11 29,11 @@ subset LibSubcommand     of Str where * ~~ / :i @lib-aliases     /;
subset TestSubcommand    of Str where * ~~ / :i @test-aliases    /;

multi MAIN(InitSubcommand,
           Str $path     = $*CWD,
               :%config  = load-config(),
           Str :$license = %config<license>,
           Str :@authors = %config<authors>,
           Str :$name    = %*ENV<PWD>.IO.basename) {
           $path     = $*CWD,
           :%config  = load-config(),
           :$license = %config<license>,
           :@authors = %config<authors>,
           :$name    = $path.IO.basename.split('-')>>.tc.join('::')) {
    if $path.IO.add('META6.json').e {
        note 'META6.json already exists, aborting.' and exit
    }