Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to design and build command-line tools that developers love to use and maintain in this 41-minute GopherCon 2019 talk by Carolyn Van Slyck. Discover techniques for leveraging popular Go libraries, structuring code for improved reusability and testability, publishing binaries, and creating user-friendly commands. Explore topics such as grammar, precedent, emojis, natural-sounding commands, JSON output, human-readable output, date-time handling, and effective help documentation. Gain insights into automating tasks, implementing task-based commands using Cobra, and configuring applications with Viper. Master the art of creating CLI tools that are both powerful and enjoyable to use.
Syllabus
Intro
Design CommandLine Tools People Love
What Can We Do
Why CommandLine Tools
DEP
Porter
Grammar
Precedent
Emojis
Sentences
Emotes
Positional arguments
Natural sounding commands
JSON output
Human output
Date times
Binary name
Moute
Domain
Help
Remote
Emote
Shrug
Tasks
Travis CLI
PubKey
Automation
Copy Paste
Make a CLI
Code
Taskbased command
Cobra
Make a package
What does it look like
Boring wiring
Shrug emoticons
Markup languages
People want things
Support all of them
Viper
Viper App
Cobra Wiring
Viper Configuration
PreRunE
Output Buffer
Dont be sad
Taught by
Gopher Academy