Skip to content

Commit

Permalink
looking good
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrowder committed May 17, 2024
1 parent 0bd4150 commit cc07f6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dev/*.json
debug-test/
Foo-Bar/
.Foo-Bar
lint-results.txt
19 changes: 11 additions & 8 deletions lib/Mi6/Utils.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ multi sub action(@args) is export {
unless $parent-dir.IO.d;
say "Using directory '$parent-dir' as the working directory.";

# take care of the module directory: replace '::' with '-'
$module-dir = $module-name;
$module-dir ~~ s:g/'::'/-/;

if $new {
# take care of the module directory: replace '::' with '-'
$module-dir = $module-name;
$module-dir ~~ s:g/'::'/-/;

mi6-helper-new :$parent-dir, :$module-dir, :$module-name, :$provides,
:$debug, :$debug2;
say qq:to/HERE/;
Expand All @@ -170,8 +170,10 @@ multi sub action(@args) is export {

if $lint {
my $lint-results = lint $parent-dir, :$debug;
my $ofil = "lint-results.txt";
spurt $ofil, $lint-results;
say qq:to/HERE/;
Exit after 'lint' mode run. See results in file '$lint-results'
Exit after 'lint' mode run. See results in file '$ofil'
in directory '$parent-dir'.
HERE
exit;
Expand Down Expand Up @@ -200,8 +202,8 @@ sub lint($dir, :$debug, --> Str) is export {
}

# get contents of the META6.json file
my %m = from-json {slurp "$dir/META6.json"};
my @r2 = %m<resources>;
my %m = from-json(slurp "$dir/META6.json");
my @r2 = @(%m<resources>);
if 1 {
say "DEBUG META6.json resources:";
say " $_" for @r2;
Expand All @@ -219,7 +221,8 @@ sub lint($dir, :$debug, --> Str) is export {
# check the .github/workflows file(s)

# check all 'use X' modules are in META6.json depends


$issues;
}


2 changes: 0 additions & 2 deletions run.sh

This file was deleted.

0 comments on commit cc07f6e

Please sign in to comment.