Project

examplify

0.0
No commit activity in last 3 years
No release in over 3 years
Good for pasting an example that's using multiple files into a gist or a blogpost.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.1
 Project Readme

Examplify

Examplify squashes multiple files together into one for easily pasting into a gist or a markdown document. It puts comments/headers with the filenames.

Example output

# root/file.rb
contents of file.rb

# root/another_file.rb
contents of another_file.rb

Usage

# entire folder
examplify project/

# only ruby files
examplify project/ --only=*.rb

# without some files
examplify project/ --exclude=*.md

# choose specific files
examplify file.rb file2.rb

Caveats

  • globbing only matches on filenames for now
  • zsh users probably want to noglob examplify, otherwise the shell will try to glob
  • very weird behaviour can occur when dogfeeding this gem and not exluding the .gem files.