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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
master← Head:feat(cli)/quickstart-warning📝 Commits (1)
82d0076feat(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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.