doc: Add comprehensive README documentation for cm tool#19
doc: Add comprehensive README documentation for cm tool#19
Conversation
…cumentation Co-authored-by: meling <810999+meling@users.noreply.github.com>
meling
left a comment
There was a problem hiding this comment.
Apply changes throughout the file, based on my provided comments.
README.md
Outdated
|
|
||
| ## Installation | ||
|
|
||
| Before installing the `cm` tool, you need to configure the `GOPRIVATE` environment variable to access the private repository: |
There was a problem hiding this comment.
I've made the repository public, so we can remove the GOPRIVATE related stuff.
There was a problem hiding this comment.
Removed all GOPRIVATE references throughout the README. Commit: 1dc266a
|
|
||
| This creates a `tools.mod` file to manage the `cm` tool version separately from the main `go.mod` file. | ||
|
|
||
| ## Prerequisites |
There was a problem hiding this comment.
This section is misleading. The Justfile is included here only as an example for courses to use alongside the cm tool.
There was a problem hiding this comment.
I prefer that this readme only refers to the cm tool, documenting its usages, not how it is used from the Justfile. Courses may chose other ways to use cm, and this readme should be the documentation for it.
There was a problem hiding this comment.
Refocused README to document the cm tool exclusively. Removed Quick Start section and "Using Just Commands" section. The documentation now focuses on cm commands only, with no assumptions about how courses use it. Commit: 1dc266a
…umentation on cm tool instead of Just commands Co-authored-by: meling <810999+meling@users.noreply.github.com>
Applied all changes based on the review comments:
|
Overview
This PR adds comprehensive documentation to the README.md file, providing clear setup instructions and complete reference documentation for the
cm(course management) tool.Changes
The README has been completely rewritten from a 3-line placeholder to a focused 204-line guide that includes:
Key Sections Added
Installation - Simple installation instructions using
go installPrerequisites - Required tools (Go 1.24+, GitHub CLI) for working with the
cmtoolInitial Setup - Two-step workflow:
cm init-envcm init-reposCommon Workflows - Real-world examples for:
Environment Variables - Complete reference table documenting all variables (YEAR, COURSE, NAME, COURSE_ORG, BOT_USER, DISCORD_JOIN_URL)
Repository Structure - Visual representation of the expected directory layout
Available Commands - Full reference of all
cmcommands with descriptionsTroubleshooting - Solutions for common issues including GitHub authentication, missing .env file, permission issues, and tool version problems
Content Sources
All documentation content is derived from existing code:
main.goanddoc.goinit_env.goDesign Decisions
cmtool itselfcmin whatever way suits their needsVerification
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.