Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,13 @@ function sidebarCommands(): DefaultTheme.SidebarItem[] {
text: 'Version',
link: 'version',
},
{
text: 'Doctor',
link: 'doctor',
},
{
text: 'Changelog',
link: 'changelog',
},
];
}
60 changes: 60 additions & 0 deletions src/commands/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# `changelog`

## Description

Prints the changelog for BuildCLI.

## Usage

```bash
buildcli changelog [options]
```

## Options

| Option | Description |
|--------------------|---------------------------------------------------------------------------------------------------------------------------|
| `--version`, `-v` | Release version to label the generated changelog (e.g., 1.2.3). If not specified, use the latest Git tag or 'Unreleased'. |
| `--format`, `-f` | Output format. Supported: markdown, html and json. (default: markdown) |
| `--output`, `-o` | The output file to write the changelog to. If not specified, will use 'CHANGELOG.\<format\>'. |
| `--include`, `-i` | Comma-separated list of commit types to include (default: all). |

## Examples

### Example 1

Generate a changelog in markdown format.

```bash
buildcli changelog
```

### Example 2

Generate a changelog for a specific version.

```bash
buildcli changelog --version 1.2.3
```

### Example 3

Generate a changelog in HTML format and save to a specific file.

```bash
buildcli changelog --format html --output changelog.html
```

### Example 4

Include only specific commit types in the changelog.

```bash
buildcli changelog --include feat,fix
```

## See Also

- [doctor](doctor.md)
- [project](project.md)
- [autocomplete](autocomplete.md)
41 changes: 41 additions & 0 deletions src/commands/doctor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# `doctor`

## Description

Analyzes the environment to ensure all necessary tools and dependencies are available and functioning correctly. Provides subcommands for diagnosing issues and applying fixes, ensuring smooth execution of other commands.

## Usage

```bash
buildcli doctor [subcommand]
```

## Options

| Option | Description |
|-----------------|----------------------------------------------------------------------------------------------------------|
| `scan` | Performs a comprehensive scan of the environment to check for required tools, their installation status, versions, and readiness (e.g., running state for Docker). Provides detailed instructions for installing missing tools. |
| `fix` | Scans the environment for required tools and dependencies, identifies issues, and attempts to automatically resolve them. This command ensures the build system is properly configured and ready for use. |

## Examples

### Example 1

Perform a comprehensive scan to ensure all necessary tools are installed and configured correctly.

```bash
buildcli doctor scan
```

### Example 2

Automatically identify and resolve issues with required tools and dependencies.

```bash
buildcli doctor fix
```

## See Also

- [project](project.md)
- [autocomplete](autocomplete.md)