[PR #1523] [MERGED] feat(cli): change quickstart to prompt user before writing files #1443

Closed
opened 2026-01-05 14:55:18 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1523
Author: @omark96
Created: 8/2/2025
Status: Merged
Merged: 9/2/2025
Merged by: @LGUG2Z

Base: masterHead: feat(cli)/quickstart-warning


📝 Commits (1)

  • 82d0076 feat(cli): change quickstart to prompt user before writing files

📊 Changes

1 file changed (+48 additions, -7 deletions)

View changed files

📝 komorebic/src/main.rs (+48 -7)

📄 Description

This commit makes it so the quickstart command first checks for the existence of the config files. If they don't exist it writes them, if they do exist it prompts the user to whether or not they want to overwrite the existing files. Lastly it prints the full path to the files that were written. This is to prevent users from accidentally overwriting their configs as well as making it clearer where komorebi places the config files for new users.

PS C:\Users\ollem\rust\komorebi> cargo run --package komorebic quickstart
C:\Users\ollem\komorebi.json will be overwritten, do you want to continue? (y/N): y
C:\Users\ollem\komorebi.bar.json will be overwritten, do you want to continue? (y/N): N
Skipping C:\Users\ollem\komorebi.bar.json
C:\Users\ollem\applications.json will be overwritten, do you want to continue? (y/N): N
Skipping C:\Users\ollem\applications.json
C:\Users\ollem\.config\whkdrc will be overwritten, do you want to continue? (y/N): y

The following example files were written:
C:\Users\ollem\komorebi.json
C:\Users\ollem\.config\whkdrc

You can now run komorebic start --whkd --bar

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/LGUG2Z/komorebi/pull/1523 **Author:** [@omark96](https://github.com/omark96) **Created:** 8/2/2025 **Status:** ✅ Merged **Merged:** 9/2/2025 **Merged by:** [@LGUG2Z](https://github.com/LGUG2Z) **Base:** `master` ← **Head:** `feat(cli)/quickstart-warning` --- ### 📝 Commits (1) - [`82d0076`](https://github.com/LGUG2Z/komorebi/commit/82d00765256ed8ef87362c997558b62765918c4b) feat(cli): change quickstart to prompt user before writing files ### 📊 Changes **1 file changed** (+48 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `komorebic/src/main.rs` (+48 -7) </details> ### 📄 Description This commit makes it so the quickstart command first checks for the existence of the config files. If they don't exist it writes them, if they do exist it prompts the user to whether or not they want to overwrite the existing files. Lastly it prints the full path to the files that were written. This is to prevent users from accidentally overwriting their configs as well as making it clearer where komorebi places the config files for new users. ``` PS C:\Users\ollem\rust\komorebi> cargo run --package komorebic quickstart C:\Users\ollem\komorebi.json will be overwritten, do you want to continue? (y/N): y C:\Users\ollem\komorebi.bar.json will be overwritten, do you want to continue? (y/N): N Skipping C:\Users\ollem\komorebi.bar.json C:\Users\ollem\applications.json will be overwritten, do you want to continue? (y/N): N Skipping C:\Users\ollem\applications.json C:\Users\ollem\.config\whkdrc will be overwritten, do you want to continue? (y/N): y The following example files were written: C:\Users\ollem\komorebi.json C:\Users\ollem\.config\whkdrc You can now run komorebic start --whkd --bar ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-01-05 14:55:18 +01:00
adam closed this issue 2026-01-05 14:55:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1443