Skip to content

Rewrite the CLI#5

Merged
zerebos merged 14 commits intomainfrom
rewrite
Feb 15, 2026
Merged

Rewrite the CLI#5
zerebos merged 14 commits intomainfrom
rewrite

Conversation

@zerebos
Copy link
Member

@zerebos zerebos commented Dec 4, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a complete rewrite of the BetterDiscord CLI, modernizing the codebase with improved architecture, better error handling, and cross-platform support. The changes reorganize code into logical packages, add platform-specific implementations, improve the command interface, and set up comprehensive build/release automation.

Changes:

  • Restructured code with internal packages (discord, betterdiscord, models, utils) for better separation of concerns
  • Rewrote install/uninstall commands to use flags instead of positional arguments with improved error handling
  • Added platform-specific path resolution (Windows, Linux, macOS) with support for Flatpak, Snap, and WSL
  • Set up automated CI/CD with GoReleaser, GitHub Actions, and package manager integrations

Reviewed changes

Copilot reviewed 31 out of 34 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
utils/*.go Deleted old utility files, functionality moved to internal packages
internal/utils/paths.go New utility functions for file operations and filtering
internal/models/*.go Data models for Discord channels and GitHub API responses
internal/discord/*.go Core Discord detection, injection, and process management logic
internal/betterdiscord/*.go BetterDiscord installation, download, and setup logic
cmd/install.go Rewritten install command using flags with improved error handling
cmd/uninstall.go Rewritten uninstall command using flags with improved error handling
cmd/completion.go New shell completion command for bash/zsh/fish/powershell
main.go Updated entry point with log configuration
package.json Updated go-npm dependency version
go.mod Updated Go version and dependencies
Taskfile.yml New task automation configuration for development and CI
.goreleaser.yaml Updated release configuration with package manager integrations
.github/workflows/*.yml New CI and release workflows
README.md Comprehensive documentation with usage examples and development guide

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 40 changed files in this pull request and generated 5 comments.

Comments suppressed due to low confidence (1)

internal/utils/download.go:53

  • Spelling error in comment: "Writer" should be "Write".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 40 changed files in this pull request and generated 9 comments.

Comments suppressed due to low confidence (1)

internal/utils/download.go:53

  • There's a typo in the comment: "Writer the body to file" should be "Write the body to file".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zerebos zerebos marked this pull request as ready for review February 15, 2026 06:48
@zerebos zerebos merged commit 9bb5633 into main Feb 15, 2026
7 checks passed
@zerebos zerebos deleted the rewrite branch February 15, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments