learn
A standalone command, registered alongside polyforge at activation. It owns
everything under Dev/Learn/<lang>/.
learn init LANG
Scaffold the tiered curriculum for a language.
Idempotent — safe to re-run. Creates the 00-setup through 04-advanced tiers, plus playground/, challenges/, notes/, and the README / ROADMAP / PROGRESS trio.
$ learn init golearn LANG TOPIC
Create the next day for a topic. Auto-initialises the track if new.
The everyday entry point. learn go loops lands in playground/day01-loops on a fresh track.
$ learn go loops
$ learn python decoratorslearn LANG next TOPIC
Explicit next day — works from any directory.
$ learn go next sliceslearn LANG dayN TOPIC
Create one specific day, zero-padded.
$ learn go day5 genericslearn next TOPIC
Next day for the track you are standing in.
run inside Dev/Learn/<lang>
$ learn next sliceslearn list LANG
Show progress and what `next` would create.
next fills the lowest missing day first — delete day02 and the next call recreates it before moving on.
$ learn list golearn publish LANG
Push a track to GitHub and register it.
requires gh
$ learn publish golearn get LANG|all
Restore registered tracks into Dev/Learn/.
$ learn get all
$ learn get golearn help
List every command.
$ learn helpDay numbering
Section titled “Day numbering”next creates the lowest missing day, not the highest plus one. If day02
was deleted, the next call recreates day02 before continuing. Days are
zero-padded to two digits: day01, day05, day12.
Positional forms at a glance
Section titled “Positional forms at a glance”| You type | You get |
|---|---|
learn go loops |
next day, topic loops |
learn go next slices |
same, stated explicitly — works from any directory |
learn go day5 generics |
playground/day05-generics |
learn next slices |
next day of the track you are standing in |
See also
Section titled “See also”- Learning tracks guide — the curriculum layout in full
polyforge