App-github-cmd
view release on metacpan or search on metacpan
lib/Perinci/CmdLine/github/cmd.pm view on Meta::CPAN
Perinci::CmdLine::github::cmd - Subclass for github-cmd
=head1 VERSION
This document describes version 0.008 of Perinci::CmdLine::github::cmd (from Perl distribution App-github-cmd), released on 2020-04-08.
=head1 DESCRIPTION
This subclass adds a hook at the C<before_parse_argv> phase to run setup
(prompting login+pass, then writing configuration file) if login+pass are not
found in configuration.
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-github-cmd>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-github-cmd>.
script/github-cmd view on Meta::CPAN
=head2 Setup
In F<~/.config/github-cmd.conf>:
login = YOUR_GITHUB_LOGIN
pass = YOUR_GITHUB_PASSWORD
# or
access_token = YOUR_API_TOKEN
or just run C<github-cmd>, which will prompt you login+pass and write them to
configuration.
=head2 User commands
% github-cmd get-user
% github-cmd get-user perlancar
=head2 Repo commands
% github-cmd list-repos
( run in 2.598 seconds using v1.01-cache-2.11-cpan-6aa56a78535 )