Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.85 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.85 KB

perl-auto-use

automation

Icons made by Good Ware from www.flaticon.com

vscode extention for perl auto use

Style

  • This extension conforms to Perl's style guide (https://perldoc.perl.org/perlstyle.html)
    • Subroutine is all lowercase
    • No space between function name and opening parenthesis
    • No space before semicolon
    • Module is PascalCase

Setting

  • filesToScan: Perl module directory for scanning
    • Multiple directory can be specified
      • Separate with white space
      • For cpan module and test module etc

Commands

  • Scan perl module files
    • Scan Perl module files for subsequent auto-using.
  • Auto use (exec after scanning)
    • Add module dependency declarations by use function.

Check details by a gif animated image below:

Sample

test

Plan

v1

  • complement use function automatically without executing commands
  • specify the directory for forecast functions
  • only forecast target exported by Exporter Module (@EXPORT,@EXPORT_OK)

v2 (now)

  • coressponding to a function to get a function name in package

v3

  • cache the function forecast options