Edit Command

Modify existing README.md files using embedded instructions

Syntax

qmims edit [file] [options]

Arguments

ArgumentDescriptionDefault
filePath to the Markdown file to editREADME.md

Options

OptionAliasDescription
--yes-yAutomatically approve all permission requests
--dry-runShow what would be done without making changes
--verbose-VShow detailed output for debugging

Examples

Edit README.md in current directory:

qmims edit

Edit a specific file:

qmims edit path/to/README.md

Edit with automatic approval of changes:

qmims edit --yes

Preview edits without making changes:

qmims edit --dry-run

How It Works

The edit command processes embedded instructions in your Markdown files. These instructions are HTML comments that tell Amazon Q what content to generate or modify.

# Project Title

<!-- qmims: Generate a concise project overview based on the codebase -->

## Features

<!-- qmims: List the main features of the project based on the code structure -->

When you run qmims edit, it will:

  1. Scan the file for embedded instructions
  2. Process each instruction using Amazon Q
  3. Replace the instructions with generated content
  4. Save the updated file (unless using --dry-run)

For more information on embedded instructions, see the Embedded Instructions section.