Skip to content

Instantly share code, notes, and snippets.

@sdondley
Created March 24, 2022 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdondley/ab982e5031aea58d09d718e6f924d526 to your computer and use it in GitHub Desktop.
Save sdondley/ab982e5031aea58d09d718e6f924d526 to your computer and use it in GitHub Desktop.
multi
multi process_args(@args where @args.elems == 0) {
die "No arguments passed to the $*PROGRAM. You must pass in at least a file name that can be parsed.";
}
multi process_args(@args where @args.elems == 1) {
my $vwf = Vimwiki::File.new(:path(@args[0]));
putv $vwf.so,
'Successfully ingested file into the Vimwiki::File Raku module',
'Could not ingest file.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment