Code Monkey home page Code Monkey logo

dg-cli's Introduction

DG CLI

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.

Installation

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

Usage

Clean Desktop

Organize files on your desktop into Documents, Images, and Others directories:

python dg/cli.py desktop clean

Force Delete

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.

Example

> 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.

License

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.

dg-cli's People

Contributors

rendegosling avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.