- GLOBAL OPTIONS
- ENVIRONMENT VARIABLES
- SEE ALSO
- COPYRIGHT AND LICENSE
pinto - Curate a custom repository of Perl modules
pinto --root=REPOSITORY_ROOT [global options] COMMAND [command options] [args]
pinto is a tool for creating and managing a custom CPAN-like repository of Perl modules. The purpose of such a repository is to provide a stable, curated stack of dependencies from which you can reliably build, test, and deploy your application using the standard Perl tool chain. pinto provides various commands for gathering and managing distribution dependencies within the repository, so that you can control precisely which dependencies go into your application.
pinto supports several commands that perform various operations on your repository, or report information about your repository. To get a listing of all the available commands:
$> pinto commands
Each command has its own options and arguments. To get a brief summary:
$> pinto help COMMAND
To see the complete manual for a command:
$> pinto manual COMMAND
The following options are available for all commands.
- --root DIRECTORY | URI
- -r DIRECTORY | URI
Specifies the root of your repository. This is mandatory for (almost) all commands unless you set it via the
PINTO_REPOSITORY_ROOTenvironment variable. The root can be the path to a local directory or an equivalent
The root can also be the URI where a pintod server is listening. Depending on your server configuration, you may need to specify the port number in the URI, which is usually 3111.
Enable or disable colorized command output. By default, color is enabled unless the output is being sent to a pipe or file. Set the
PINTO_NO_COLORenvironment variable to disable color by default.
- --password PASS
- -p PASS
The password to use for server authentication. This is only relevant if using a remote repository. If the PASS is "-" then you will be prompted for a password.
Report only fatal errors. This option silently overrides the
--verboseoptions. Also suppresses the progress meter.
Note: The progress meter is always suppressed when using a remote repository. This will hopefully be fixed a future release.
- --username NAME
- -u NAME
The username to user for server authentication. This is only relevant if using a remote repository. Defaults to your current login.
Display more diagnostic messages. This switch can be repeated multiple times for greater effect. Diagnostic messages are always sent to STDERR.
Each repository has a configuration file that lives inside the repostiory at .pinto/config/pinto.ini. This file is generated for you with default values when you create the repository. You can influence the initial value for some of the properties when you run the init command. Thereafter, you can change these properties by editing the configuraiton file directly.
The following configuration parameters are supported:
- sources = URL1 [URL2 URL3 ...]
This is a space-delimited list of the URLs for the upstream repositories that this repository will pull archives from. These can point to CPAN mirrors, minicpan mirrors, or stacks within other Pinto repositories. Pinto will search the source repositories in the order they are listed here. The default value is
- target_perl_version = X.X.X
Sets the default
target_perl_versionproperty for all new stacks. Otherwise, all new stacks will target the version of perl that you first used to create the repository. You can always configure the target perl for each stack independently by using the props command.
- intermingle = 1 | 0
If true, stacks will be allowed to "intermingle" distributions that have partially overlapping packages. This makes pinto behave like PAUSE which allows a package to remain in the index until it is replaced by a distribution containing the same package. Thus, it becomes possible to have an index that contains just
someof the packages in a particular distribution. This typically occurrs when a package in a prior release is absent from a subsequent release. The default is false.
BEWARE: The above configuration properties are global -- they affect every stack in the repository. They also have a major affect on how the repository behaves. For these reasons, it is generally unwise to change these parameters once you have established the repository and filled it with content. If you do change them, be sure and notify your team about it. Each stack also has some stack-specific configuration properties. Those can be shown or set using the props command.
The following environment variables influence the behavior of pinto. If you have installed pinto as a stand-alone application as described in Pinto::Manual::Installing, then the best place to set these variables is in your ~/.pintorc file.
Sets the default path or URL of the pinto repository, if the
--rootis not specified. The
--rootis required for almost all commands. So if you usually only work with one repository, then setting this can save you quite a bit of typing.
Sets the path to editor application that will be used to compose log messages. If not set, defaults to
EDITOR. If none of those are set, either
viwill be used (in that order).
If set to a true value, suppresses color in all command output.
A comma-separated list of exactly three color names. Any name supported by Term::ANSIColor is allowed. These will be the colors that pinto uses to colorize various output. For example:
PINTO_PALETTE='red, light blue, green on_white'
Listing too many or too few colors will cause an exception, as will using an invalid color name. For backward compatibility the variables
PINTO_COLOURScan also be used (but they are deprecated).
Sets the default username when
--usernameis not specified. This is only used for authentication with a pintod server. Defaults to your current shell username.
Sets the default author identity when the
--authoroption is not specified (currently, only used by the add command). Defaults to your current shell username. By PAUSE convention, all author id's are forced to uppercase.
Sets the path to the pager application that will be used to paginate output from each command. Defaults to
PAGER. If none of these are set, then no pager is used.
Sets the options that will be passed to the pager (if there is one). For example, you could use the
-Roption to instruct
lessto pass through the colors that pinto usually displays:
Most pagers have their own environment variables to control their default behavior.
PINTO_PAGER_OPTIONSgives you a way to set defaults that are specific to when you are using it with pinto.
Sets the default style for diff reports. Valid styles are
concise. The default is
concise. For commands that produce diff reports, this can be overriden with the
--diff-styleoption. This variable only has effect when using a local repository.
If set to 1, pinto will emit more diagnostic messages to STDERR. If set to 2, pinto will emit even more diagnostic messages. This variable only has effect when using a local repository.
Sets the timeout (in seconds) for obtaining a lock on the repository. The default is 50. This variable only has effect when using a local repository.
Sets the timeout (in seconds) to consider a lock on the repository stale and expire it. The default is 0 (don't expire). This variable only has effect when using a local repository.
Sets the path to the command pinto will use for interactive shells (like with the look command). If this is not set, pinto defaults to either
pintod to allow remote access to your Pinto repository.
Pinto::Manual for general information on using Pinto.
Stratopan for hosting your Pinto repository in the cloud.
Jeffrey Ryan Thalhammer <firstname.lastname@example.org>
This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.