Skip to content

ctismer/dedent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dedent

The simple detent module, which makes writing inline code easy.

Usage:

python -c dedent.py "<some code>"

or

python -m dedent "<some code>"

Dedent the next program on the command line and execute it.

This has the nice effect that the inline code can be freely indented. The script replaces the "-c" parameter. Alternatively, you can also use "-m" without ".py".

There is no shebang line by intent. It is not meant as a standalone script.

Inspired by a comment from Frederik Gladhorn.

About

The simple detent module, which makes inline code easy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages