Giter VIP home page Giter VIP logo

shlorem's Introduction

bash_unit CI Shellcheck CI GH Language GH stars GH tag GH License basher install

shlorem

shlorem

Lorem Ipsum generator for the command line • multiple languages • arbitrary length

🔥 Usage

Program: shlorem 1.1.1 by [email protected]
Updated: Apr  1 22:47:45 2021
Description: Lorem Ipsum generator for the command line
Usage: shlorem [-h] [-q] [-v] [-f] [-l <log_dir>] [-t <tmp_dir>] [-s <source>] <action> <input?>
Flags, options and parameters:
    -h|--help        : [flag] show usage [default: off]
    -q|--quiet       : [flag] no output [default: off]
    -v|--verbose     : [flag] output more [default: off]
    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]
    -l|--log_dir <?> : [option] folder for log files   [default: /Users/pforret/log/shlorem]
    -t|--tmp_dir <?> : [option] folder for temp files  [default: .tmp]
    -s|--source <?>  : [option] text source: lorem/latin/german/french/english/swedish/dutch/russian/chinese/random  [default: lorem]
    <action>         : [parameter] action to perform: chars/words/sentences/paragraphs
    <input>          : [parameter] number of text blobs to generate (default: 20) (optional)
                 
### TIPS & EXAMPLES
* use shlorem chars to generate a number of characters
  shlorem chars 100
* use shlorem words to generate a number of words
  shlorem words 20
* use shlorem sentences to generate a number of sentences
  shlorem sentences 5
* use shlorem paragraphs to generate a number of paragraphs
  shlorem paragraphs 3
* use shlorem check to check if this script is ready to execute and what values the options/flags are
  shlorem check
* use shlorem env to generate an example .env file
  shlorem env > .env
* use shlorem update to update to the latest version
  shlorem check

👻 Examples

$ shlorem s
# Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.

$ shlorem sentences 5
# Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. 
# Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. 
# Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.

$ shlorem -s fr words 49
# Lorsque, par un décret des puissances suprêmes, Le Poète apparaît en ce monde ennuyé, 
# Sa mère épouvantée et pleine de blasphèmes Crispe ses poings vers Dieu qui la prend en pitié. Ah! 
# Que n' ai je mis bas tout un nœud de vipères, Plutôt que de nourrir cette dérision!

$ shlorem -s latin p 2
# Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, 
# totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
#
# Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, 
# sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

$ shlorem -s se c 150
# Han kom som ett yrväder en aprilafton och hade ett höganäskrus i en svångrem om halsen. 
# Clara och Lotten voro inne med skötekan att hämta honom på Dal

$ shlorem -s nl w 28
# Hoe de menschen ook gewoonlijk over mij spreken,—en ik weet maar al te goed, 
# in welk een kwaden naam de Zotheid zelfs bij de zotsten staat—beweer ik toch,

$ shlorem -s cn c 20
# 人人生而自由, 在尊严和权利上一律平等。

$ shlorem -s rnd w 24
# Angling absorbent gene loom hart blowiest smoochy limey metros mils molly slopes. 
# Piasters cutlets aspects mingling scapulars seating archers nosedived leave mender lofts

🚀 Installation

with basher

$ basher install pforret/shlorem

or with git

$ git clone https://github.com/pforret/shlorem.git
$ cd shlorem
$ ./shlorem ...

📝 Acknowledgements

© 2021 Peter Forret

shlorem's People

Contributors

pforret avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shlorem's Issues

Feature Request: Support for OpenBSD, please.

Is your feature request related to a problem? Please describe.

I was hoping to use this to generate lorem ipsum phrases on the fly in my shell. Sadly, it does not appear OpenBSD is supported, because when I executed the command shlorem I received this error:

/home/user/.basher/cellar/bin/shlorem: line 789: os_name: unbound variable
✖ shlorem: ERROR 1 after 0 seconds 
> last command : 'debug "$info_icon System OS  : $os_name ($os_kernel) $os_version on $os_machine"' 
${error_prefix} from line 1 : #!/usr/bin/env bash

Describe the solution you'd like
Since it is purely written in bash, and there are no external resources required for use. There is nothing preventing it from being compatible, except a definition or two.

Describe alternatives you've considered
The only other alternative is to uninstall the script, AND uninstall basher, because it seems this script is not the only one.

Additional context
I do understand OpenBSD is one of the smaller communities out there, but it has steadily increased in user base over the years. OpenBSD also is dedicated to supporting only Open Source technology, which is something many distributions cannot claim.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.