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
Ensure pip and pipenv are installed.
Clone repository: https://github.com/thiagolcmelo/desafio-idwall
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
Release history Release notifications | RSS feed
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.1.tar.gz
(3.7 kB
view details)
File details
Details for the file shrincols-0.1.1.tar.gz.
File metadata
- Download URL: shrincols-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c0b455fed75c5a15fa3569bb113e1f36f1cc1462f9bc8f62f73969ee2da154
|
|
| MD5 |
ab354c0bcc9e7ff5c298eb47d3edf227
|
|
| BLAKE2b-256 |
5a6a11c62b483aab2b294a29faceec434c3463daf1ce7c59b549c1f9f18eaa5a
|