How k1low/deck works
deck is a CLI for creating and iteratively updating Google Slides presentations from Markdown. The main workflow is to create or choose a presentation, write slide content in Markdown, then apply it; the CLI also supports watch mode, export, layout and presentation listing, browser opening, and setup diagnosis. Internally, Markdown parsing produces slide structures that the presentation client applies through Google APIs. Relationships are limited to those visible in excerpts or documented in the README; several core implementation modules are represented, but their internal calls were not sampled.
Main entry points: deck.go Presentation client · md.go Markdown parser · apply.go Apply and watch · new.go Create presentation
Components 24
CLI workflows
- Command entry
cmd/deck/main.go - Apply and watch
cmd/apply.go - Create presentation
cmd/new.go - Export PDF
cmd/export.go - List presentations
cmd/ls.go - List layouts
cmd/lsLayouts.go - Open presentation
cmd/open.go - Setup diagnosis
cmd/doctor.go
Markdown content
- Markdown parser
md/md.go - Frontmatter
md/frontmatter.go - Conditional defaults
md/cel.go
Presentation engine
- Presentation client
deck.go - Slide operations
action.go - Slide model
slide.go - Slide styling
style.go - Table rendering
table.go - Image handling
image.go
Identity and settings
- OAuth client
client.go - Configuration
config/config.go
Other components
- Presenter
- Google Slides and Drive
- Markdown file
- PDF file
- Web browser
Connections 31
- Presenter → Command entry: runs commands
README.md - Command entry → Apply and watch: dispatches
cmd/deck/main.go - Apply and watch → Markdown parser: parses content
cmd/apply.go - Markdown file → Apply and watch: provides slides
README.md - Apply and watch → Presentation client: applies slides
cmd/apply.go - Presentation client → Google Slides and Drive: updates presentation
deck.go - Presenter → Create presentation: requests creation
README.md - Create presentation → Presentation client: creates presentation
cmd/new.go - Create presentation → Frontmatter: writes metadata
cmd/new.go - Frontmatter → Markdown file: updates file
md/frontmatter.go - Presenter → Export PDF: requests export
README.md - Export PDF → Presentation client: exports presentation
cmd/export.go - Export PDF → PDF file: writes PDF
cmd/export.go - Presenter → List presentations: lists presentations
README.md - List presentations → Google Slides and Drive: lists files
- Presenter → List layouts: lists layouts
README.md - List layouts → Presentation client: reads layouts
cmd/lsLayouts.go - Presenter → Open presentation: opens presentation
README.md - Open presentation → Web browser: launches URL
- Presenter → Setup diagnosis: checks setup
README.md - Setup diagnosis → Presentation client: checks authentication
cmd/doctor.go - Presentation client → OAuth client: gets HTTP client
deck.go - OAuth client → Configuration: loads credentials
client.go - Markdown parser → Frontmatter: reads metadata
md/md.go - Markdown parser → Conditional defaults: evaluates defaults
- Markdown parser → Slide model: builds slide data
md/md.go - Presentation client → Slide operations: dispatches operations
- Slide operations → Slide model: uses slide model
- Presentation client → Slide styling: applies styles
- Presentation client → Table rendering: renders tables
- Presentation client → Image handling: handles images