Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Design Command-Line Tools People Love

Gopher Academy via YouTube

Overview

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

Reviews

Start your review of Design Command-Line Tools People Love

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.