dg-cli
is a command-line interface tool for managing and cleaning your desktop. It provides functionalities to organize files into specific directories and force delete all items in the root of the Desktop.
Clone the repository and navigate to the project directory:
git clone https://github.com/yourusername/dg-cli.git
cd dg-cli
Install the required dependencies:
pip install -r requirements.txt
Organize files on your desktop into Documents
, Images
, and Others
directories:
python dg/cli.py desktop clean
Delete all files and folders in the root of your Desktop:
python dg/cli.py desktop clean --force
You will be prompted to confirm the deletion before it proceeds.
> python dg/cli.py desktop clean
Found 0 document files to move to /Users/yourusername/Desktop/Documents
Verification successful: 0 document files moved to /Users/yourusername/Desktop/Documents
Found 1 image files to move to /Users/yourusername/Desktop/Images
Verification successful: 1 image files moved to /Users/yourusername/Desktop/Images
Found 0 other files to move to /Users/yourusername/Desktop/Others
Verification successful: 0 other files moved to /Users/yourusername/Desktop/Others
Desktop cleaned up!
> python dg/cli.py desktop clean --force
The following items will be deleted:
file1.txt
file2.jpg
folder1
Are you sure you want to delete all these items? (yes/no): yes
All files and folders in the root of Desktop have been deleted.
This project is licensed under the MIT License - see the LICENSE file for details.
Explanation:
- Installation: Instructions to clone the repository and install dependencies.
- Usage: Commands to clean the desktop and force delete items.
- Example: Example output of the commands.
- License: Placeholder for license information.