skaji / mi6

minimal authoring tool for Raku
https://raku.land/zef:skaji/App::Mi6
Artistic License 2.0
54 stars 18 forks source link

introduce dist() method #133

Closed skaji closed 2 years ago

skaji commented 2 years ago

This PR removes ver and auth from class App::Mi6:ver<1.1.5>:auth<cpan:SKAJI>. Instead, it introduces a new method dist() which actually returns $?DISTRIBUTION so that people inspect App-Mi6 distribution as they want.

For example, people can get version and auth by

use App::Mi6;

say App::Mi6.dist.meta<version>; # 1.1.5
say App::Mi6.dist.meta<auth>;    # cpan:SKAJI