$ box
______ ______
/ ____/___ ____ ___ ____ ___ ____ _____ ____/ / __ )____ _ __
/ / / __ \/ __ `__ \/ __ `__ \/ __ `/ __ \/ __ / __ / __ \| |/_/
/ /___/ /_/ / / / / / / / / / / / /_/ / / / / /_/ / /_/ / /_/ /> <
\____/\____/_/ /_/ /_/_/ /_/ /_/\__,_/_/ /_/\__,_/_____/\____/_/|_| (R) v5.2.1+00295
Talk is cheap. Show me the code. --Linus Torvalds
Welcome to CommandBox!
CommandBox>
# PRESENTING CODE
By Abram Adams
Developer, DevOps Engineer, Manager, etc...
# TryCF
# Why Though?
# Why Though?
Automation
Automation
Automation
# Why Though?
# Why Though?
urfave/cli (Go)
# CLI Frameworks
urfave/cli (Go)
# CLI Frameworks
# CLI Frameworks
Let's Look At Code
# CLI Inputs
Interactive Inputs
# Helper Methods
Helper Methods
# Modules/DI
Shell and Filesystem
# Modules/DI
Modules/Dependency Injection
# Arguments
Arguments - Automation
# Environment
Environment Variables
# Templating
System Variable Expansion
# Create user (first time only)
forgebox register username password your@email.com firstName lastName
forgebox login username password
# Create package
mkdir mypackage --cd
package init slug=my-package type=modules
bump --major
# Publish it
publish
# Viewable and installable by the world!
forgebox show my-package
install my-package
# Publishing