No description, website, or topics provided.
Perl6 Makefile
Latest commit 63a9232 Mar 19, 2017 @tbrowder fix build icon, again
Permalink
Failed to load latest commit information.
bin ready for release v0.1.4 Mar 6, 2017
dev update Dec 31, 2016
docs fix so as to skip =begin/=end blocks Jan 1, 2017
lib/Text remove commented-out code Mar 5, 2017
t clean up test and fix the plan number Jan 1, 2017
.gitignore
.travis.yml add dependency for bin file; delete unneeded zef installation for tes… Jan 1, 2017
CHANGELOG.md
LICENSE add new files Nov 3, 2016
META6.json ready for release v0.1.4 Mar 6, 2017
Makefile ready for travis Dec 17, 2016
README.md fix build icon, again Mar 19, 2017
TODO updates and fixes Mar 12, 2017

README.md

Text::More

Build Status

Being a lazy programmer, I refactor chunks of code I find useful into a module; whence comes this collection of Perl 6 subroutines I have written during my coding adventures using Perl 5's new little sister. I hope they will be useful to others.

The routines are described in detail in ALL-SUBS which shows a short description of each exported routine along along with its complete signature.

This module also includes a utility program in the bin directory.

Status

This version is 0.*.* which is considered usable but may not be ready for production. The APIs are subject to change in which case the version major number will be updated. Note that newly added subroutines or application programs are not considered a change in API.

Debugging

For debugging, use one of the following methods:

  • set the module's $DEBUG variable:
:$Text::More::DEBUG = True;
  • set the environment variable:
TEXT_MORE_DEBUG=1

Subroutines Exported by the :ALL Tag

See ALL-SUBS for a list of export(:ALL) subroutines, each with a short description along with its complete signature. Note that individual subroutines may also be exported:

use Text::More :ALL;
use Text::More :strip-comment;

Utility Program

See the bin directory for a utility program (create-md.p6) to create a README.md file for modules.

Executing it without any arguments results in the following:

Usage: ./create-md.p6 -m <file> | -b <bin dir> | -h [-d <odir>, -N, -M <max>, -D]

Reads the input module (or program files in the bin dir) and extracts
properly formatted comments into markdown files describing the subs
and other objects contained therein.  Output files are created in the
output directory (-d <dir>) if entered, or the current directory
otherwise.

Subroutine signature lines are folded into a nice format for the
markdown files unless the user uses the -N (no-fold) option.  The -M
<max> option specifies a user-desired maximum line length for folding.
The signature is output as a code block.

In program files, the comments are folded into lines no longer than
the maximum line length.  If the program has a help option (-h), the
result of that command will be added to the output as a code block.

See the lib/Text and bin directories for a module file and a program
with the known formats.  The markdown files in the docs directory in
this repository were created with this program from those files.

Modes (select one only):

  -m <module file>
  -b <bin directory>
  -h help

Options:

  -d <output directory>    default: current directory
  -M <max line length>     default: 78

  -N do NOT format or modify sub signature lines to max length
  -v verbose
  -D debug

Contributing

Interested users are encouraged to contribute improvements and corrections to this module, and pull requests, bug reports, and suggestions are always welcome.

Acknowledgements

The commify subroutine is based on the subroutine of the same name found in the Perl Cookbook.

LICENSE and COPYRIGHT

Artistic 2.0. See LICENSE.

Copyright (C) 2017 Thomas M. Browder, Jr. <tom.browder@gmail.com>