Skip to content

code-show is a simple command-line tool for code presentation.

License

Notifications You must be signed in to change notification settings

lazlojuly/code-show

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-show

Introduction

code-show is a command-line tool for code presentation.

It works best on a project with meaningful commits where each commit represents the next code example.

By typing next, code-show will checkout the next commit for you.
(It will also inform you about your current and next commit)

usage example gif

By using this tool you can focus on your presentation rather than having to manually switch between code examples.

Origin of code-show

I was doing a talk on APIs at London Node.js User Group and was using a bash script for checking out specific git commits for my code demo part.
As it turned out, people were more interested in the "next" script rather than API documentations :)

Important Note

The current version of code-show will throw away your local changes.
It is using git checkout with the --force command.
Please make sure you are using this tool for presentation purposes only.

Installation

npm i code-show -g

Usage

// checkout your demo source code to a folder
// eg.: git clone git@github.com:lazlojuly/my-demo-app.git
cd my-demo-app
code-show

Commands:

  • Type "next" for next commit
  • Type "help" for list of commands
  • Type "exit" to exit at current commit

About

code-show is a simple command-line tool for code presentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published