tycs-cli

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0

README

tycs

Browse the Teach Yourself CS curriculum from the command line.

tycs is a single pure-Go binary. No API key required.

Install

go install github.com/tamnd/tycs-cli/cmd/tycs@latest

Or grab a prebuilt binary from the releases, or run the container image:

docker run --rm ghcr.io/tamnd/tycs:latest --help

Usage

# List all 9 CS subject guides
tycs subjects

# Table output
tycs subjects -o table

# JSON output
tycs subjects -o json

# Get subject URLs only
tycs subjects -o url

# Limit results
tycs subjects -n 3

Commands

Command Description
subjects List all CS subject guides from Teach Yourself CS
version Show version information

Global flags

-o, --output string    output format: table|json|jsonl|csv|tsv|url|raw (default "auto")
-n, --limit int        limit number of records (0 = all)
    --fields strings   comma-separated columns to include
    --no-header        omit header row
    --template string  Go text/template per record
    --timeout duration per-request timeout (default 30s)
    --delay duration   minimum spacing between requests
    --retries int      retry attempts on 429/5xx (default 3)

License

Apache-2.0. See LICENSE.

Directories

Path Synopsis
Package cli builds the tycs command tree.
Package cli builds the tycs command tree.
cmd
tycs command
Command tycs is a single-binary command line for Teach Yourself CS.
Command tycs is a single-binary command line for Teach Yourself CS.
Package render turns slices of record structs into one of the output formats tycs-cli supports: table, json, jsonl, csv, tsv, url, and raw.
Package render turns slices of record structs into one of the output formats tycs-cli supports: table, json, jsonl, csv, tsv, url, and raw.
Package tycs is the library behind the tycs CLI.
Package tycs is the library behind the tycs CLI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL