1.0.2 • Published 6 years ago

swapple v1.0.2

Weekly downloads
9
License
ISC
Repository
github
Last release
6 years ago

swapple

Interactive CLI menu to toggle commented portions of files.

Usage

Install.

npm i -g swapple

Create toggle-able sections of your file.

For example, here is a mock part of an Apache httpd.conf file using swapple comments to allow swapple to handle toggling for us.

# swapple start foo
ProxyPass /foo https://foo.com/
ProxyPassReverse /foo https://foo.com/
# swapple end

# swapple start bar
# ProxyPass /bar https://bar.com/
# ProxyPassReverse /bar https://bar.com/
# swapple end

Use swapple to toggle sections on and off.

swapple <path-to-your-file>

gif of swapple in use

Expect to find your file properly swapple'd.

# swapple start foo
# ProxyPass /foo https://foo.com/
# ProxyPassReverse /foo https://foo.com/
# swapple end

# swapple start bar
ProxyPass /bar https://bar.com/
ProxyPassReverse /bar https://bar.com/
# swapple end

Development

Build

npm run build

Test

npm t
1.0.2

6 years ago

1.0.0-rc.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago

0.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago