Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14976
| Path | csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Edward Betts <edward@4angle.com> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.devel, linux.debian.maint.python |
| Subject | Bug#1032825: ITP: gitlike-commands -- Python module for easily creating `git`-style subcommand handling |
| Date | Sun, 12 Mar 2023 10:30:01 +0100 |
| Message-ID | <G8qbD-bVX0-5@gated-at.bofh.it> (permalink) |
| X-Original-To | Debian Bug Tracking System <submit@bugs.debian.org> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Sun Mar 12 09:21:11 2023 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -3.75 |
| Reply-To | Edward Betts <edward@4angle.com>, 1032825@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org |
| X-Debian-Pr-Message | report 1032825 |
| X-Debian-Pr-Package | wnpp |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1764151 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Sun, 12 Mar 2023 09:17:50 +0000 |
| X-Original-Message-ID | <20230312091750.kgg2fe7n5bxie5op@4angle.com> |
| Xref | csiph.com linux.debian.bugs.dist:1141019 linux.debian.devel:107484 linux.debian.maint.python:14976 |
Cross-posted to 3 groups.
Show key headers only | View raw
Package: wnpp
Severity: wishlist
Owner: Edward Betts <edward@4angle.com>
X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org
* Package name : gitlike-commands
Version : 0.2.1
Upstream Author : Joe Block <jpb@unixorn.net>
* URL : https://github.com/unixorn/gitlike-commands
* License : Apache-2.0
Programming Lang: Python
Description : Python module for easily creating `git`-style subcommand handling
The subcommand_driver automatically figures out what name the script was
called as, then looks for subcommands and runs them if found, passing in any
command line options.
.
If you have a `foo` script in your $PATH as shown below
.
#!/usr/bin/env python3
from gitlike_commands import subcommand_driver
.
if __name__ == '__main__':
subcommand_driver()
.
Running `foo bar baz` will look for a `foo-bar-baz` script, and if present
in your $PATH, run it. If there is no `foo-bar-baz`, it will look for
`foo-bar`, and if it finds that, run `foo-bar baz`.
.
The subcommands can be written in any language, the only requirements are
that they are marked executable and follow the `foo-something` naming
convention.
I plan to maintain this package as part of the Python team.
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Bug#1032825: ITP: gitlike-commands -- Python module for easily creating `git`-style subcommand handling Edward Betts <edward@4angle.com> - 2023-03-12 10:30 +0100
csiph-web