Skip to main content

Tool for fit string to a fixed number of cols.

Project description

CLI for making a text to fit a max number of columns.

Preparing for Development

  1. Ensure pip and pipenv are installed.

  2. Clone repository: https://github.com/thiagolcmelo/desafio-idwall

  3. Fetch development dependencies: make install

Usage

The input might be a filename:

$ shrincols filename.txt -c 80

or a string:

::

$ shrincols “some text goes here …” -c 80

The option -j forces the text to be justified:

$ shrincols filename.txt -c 80 -j

It would be a nice feature to read standard input, we will implement soon.

Running Tests

Run tests locally using make if virtualenv is active:

$ make

If virtualenv isn’t active then use

$ pipenv run make

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shrincols-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file shrincols-0.1.0.tar.gz.

File metadata

  • Download URL: shrincols-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shrincols-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fce1fca062b5402ae6079bb23ab0d0825c8ab38e70a05bc89e67d8fce23c8684
MD5 ea05810b3e4bb98deaff25ed59be402d
BLAKE2b-256 a8a17dad8a2baf82c8a117e72efc0f35a509ed3e7e2cedfa0ede53ab3a34673c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page