#1026818 ITP: usagef -- A tool to print formatted usage messages

#1026818#5
Date:
2022-12-21 15:19:40 UTC
From:
To:
* Package name    : usagef
  Version         : 0.1.0
  Upstream Author : Name <2justinmorgan@gmail.com>
* URL             : https://github.com/litelibs/usagef/
* License         : (MIT/X)
  Programming Lang: (C)
  Description     : A tool to print formatted usage messages

Designed for developers of shell scripts, the usagef terminal tool
prints consistent formatted usage messages that contain the information
passed as argv args of the usagef program.

Here is an example of how usagef can be used to print the usage message
of a custom script, deploy.sh.

$ usagef \
  --name "deploy.sh" \
  --argv "[options] <environment> <package>" \
  --description "Deploy a package to the specified environment" \
  --item "Options:-f, --force:Forces the deployment" \
  --item "Options:-t, --api-token <token>:Specify the api token used" \
  --item "Options:-r, --report <email>:Email a report to someone" \
  --item "Options:-j, --json:Prints output in json format" \
  --item "Environment:dev:Deploy to dashboard.dev.company.com" \
  --item "Environment:preprod:Deploy to dashboard.preprod.company.com" \
  --item "Environment:prod:Deploy to dashboard.company.com" \
  --item "Package:user:Deploys updated user accounts" \
  --item "Package:security:Deploys vetted security protocols"  \
  --item "Package:logging:Deploys a new, and archives old logs"

[OUTPUT]

Usage: deploy.sh [options] <environment> <package>

Deploy a package to the specified environment

Options:
  -f, --force              Forces the deployment
  -t, --api-token <token>  Specify the api token used
  -r, --report <email>     Email a report to someone
  -j, --json               Prints output in json format

Environment:
  dev      Deploy to dashboard.dev.company.com
  preprod  Deploy to dashboard.preprod.company.com
  prod     Deploy to dashboard.company.com

Package:
  user      Deploys updated user accounts
  security  Deploys vetted security protocols
  logging   Deploys a new, and archives old logs



- Why is this package useful/relevant?
  This package is useful because it bypasses the repeat efforts of
  maintaining consistent formatting of shell script usage messages.
- Is it a dependency for another package?
  No, this is not a dependency for another package.
- Do you use it?
  Yes, it is self-used. A few prototypes have been developed, thus inspiring
  the development of this package.
- If there are other packages providing similar functionality, how does it
  compare?
  There are no known packages that provide similar functionality.
- How do you plan to maintain it?
  Maintenance is planned to be a request-driven method that serves
  user's needs mentioned in https://github.com/litelibs/usagef/issues.
- Inside a packaging team (check list at https://wiki.debian.org/Teams)?
  No, maintenance will not be coordinated via Debian teams. However, a team at
https://wiki.debian.org/Teams may be needed for future works of usagef.
- Are you looking for co-maintainers?
  No, a co-maintainer is not needed. However, a co-maintainer may be needed for
  future works of usagef.
- Do you need a sponsor?
  No, it is believed that a sponsor is not needed. However, a sponsor would be
  nice to have.

#1026818#10
Date:
2022-12-27 16:48:26 UTC
From:
To:
Thanks for your email!
#1026818#15
Date:
2022-12-27 16:48:58 UTC
From:
To:
Thanks for your email!
#1026818#20
Date:
2022-12-27 16:49:30 UTC
From:
To:
Thanks for your email!
#1026818#25
Date:
2022-12-27 16:50:01 UTC
From:
To:
Thanks for your email!
#1026818#30
Date:
2022-12-27 16:50:34 UTC
From:
To:
Thanks for your email!
#1026818#35
Date:
2022-12-27 16:51:05 UTC
From:
To:
Thanks for your email!
#1026818#40
Date:
2022-12-27 16:51:36 UTC
From:
To:
Thanks for your email!
#1026818#45
Date:
2022-12-27 16:52:08 UTC
From:
To:
Thanks for your email!
#1026818#50
Date:
2022-12-27 16:52:39 UTC
From:
To:
Thanks for your email!
#1026818#55
Date:
2022-12-28 00:43:23 UTC
From:
To:
Thanks for your email!
#1026818#60
Date:
2022-12-28 00:44:28 UTC
From:
To:
Thanks for your email!
#1026818#65
Date:
2022-12-28 00:46:04 UTC
From:
To:
Thanks for your email!
#1026818#70
Date:
2022-12-28 00:46:37 UTC
From:
To:
Thanks for your email!
#1026818#75
Date:
2022-12-28 00:47:09 UTC
From:
To:
Thanks for your email!
#1026818#80
Date:
2022-12-28 00:47:41 UTC
From:
To:
Thanks for your email!
#1026818#85
Date:
2022-12-28 01:53:21 UTC
From:
To:
Thanks for your email!
#1026818#90
Date:
2022-12-28 01:53:53 UTC
From:
To:
Thanks for your email!
#1026818#95
Date:
2022-12-28 01:54:25 UTC
From:
To:
Thanks for your email!
#1026818#100
Date:
2022-12-28 01:55:28 UTC
From:
To:
Thanks for your email!
#1026818#105
Date:
2022-12-28 02:58:30 UTC
From:
To:
Thanks for your email!
#1026818#110
Date:
2022-12-28 03:00:38 UTC
From:
To:
Thanks for your email!
#1026818#115
Date:
2022-12-28 03:01:10 UTC
From:
To:
Thanks for your email!
#1026818#120
Date:
2022-12-28 03:01:42 UTC
From:
To:
Thanks for your email!
#1026818#125
Date:
2022-12-28 03:02:46 UTC
From:
To:
Thanks for your email!
#1026818#130
Date:
2022-12-28 03:03:17 UTC
From:
To:
Thanks for your email!
#1026818#135
Date:
2022-12-28 04:06:22 UTC
From:
To:
Thanks for your email!
#1026818#140
Date:
2022-12-28 04:06:54 UTC
From:
To:
Thanks for your email!
#1026818#145
Date:
2022-12-28 04:07:26 UTC
From:
To:
Thanks for your email!
#1026818#150
Date:
2022-12-28 04:07:58 UTC
From:
To:
Thanks for your email!
#1026818#155
Date:
2022-12-28 04:08:30 UTC
From:
To:
Thanks for your email!
#1026818#160
Date:
2022-12-28 05:14:44 UTC
From:
To:
Thanks for your email!
#1026818#165
Date:
2022-12-28 05:18:56 UTC
From:
To:
Thanks for your email!
#1026818#170
Date:
2022-12-28 08:39:25 UTC
From:
To:
Thanks for your email!
#1026818#175
Date:
2022-12-28 08:40:29 UTC
From:
To:
Thanks for your email!
#1026818#180
Date:
2022-12-28 08:41:00 UTC
From:
To:
Thanks for your email!
#1026818#185
Date:
2022-12-28 08:41:31 UTC
From:
To:
Thanks for your email!
#1026818#190
Date:
2022-12-28 08:42:03 UTC
From:
To:
Thanks for your email!
#1026818#195
Date:
2022-12-28 09:45:02 UTC
From:
To:
Thanks for your email!
#1026818#200
Date:
2022-12-28 09:45:35 UTC
From:
To:
Thanks for your email!
#1026818#205
Date:
2022-12-28 09:46:07 UTC
From:
To:
Thanks for your email!
#1026818#210
Date:
2022-12-28 09:46:39 UTC
From:
To:
Thanks for your email!
#1026818#215
Date:
2022-12-28 09:47:11 UTC
From:
To:
Thanks for your email!
#1026818#220
Date:
2022-12-28 09:47:42 UTC
From:
To:
Thanks for your email!
#1026818#225
Date:
2022-12-28 09:48:14 UTC
From:
To:
Thanks for your email!
#1026818#230
Date:
2022-12-28 09:48:46 UTC
From:
To:
Thanks for your email!
#1026818#235
Date:
2022-12-28 10:53:55 UTC
From:
To:
Thanks for your email!
#1026818#240
Date:
2022-12-28 10:56:35 UTC
From:
To:
Thanks for your email!
#1026818#245
Date:
2022-12-28 12:00:39 UTC
From:
To:
Thanks for your email!