Fortune - but in rust
Find a file
2019-10-28 00:29:25 +01:00
src Add the -w flag 2019-10-28 00:20:57 +01:00
.gitignore Initial Commit 2019-10-26 18:29:38 +02:00
.gitlab-ci.yml Remove warning from length parameter description and execute the tool in ci 2019-10-27 12:19:33 +01:00
Cargo.lock Initial Commit 2019-10-26 18:29:38 +02:00
Cargo.toml Initial Commit 2019-10-26 18:29:38 +02:00
fortunes Initial Commit 2019-10-26 18:29:38 +02:00
readme.md Add a readme 2019-10-28 00:29:25 +01:00

Fortune-mod (in rust)

This is a clone of the original fortune command found on many unix systems

It's primarily an educational project in which i aim to completely reimplement the command.

Progress

  • Print a fortune from a fortunes file
  • Specify a cutoff for what is considered a short fortune (the -n flag)
  • Specify whether a short or a long fortune should be printed (the -l flag)
  • Wait n amount of seconds before the program exits (the -w flag)
  • Allow multiple fortune cookie files
  • Allow to filter with a pattern (the -m flag)
  • Ignore case for the pattern (the -i flag)