Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Alohomora, Obscuro, Riddikulus, Silencio, Expecto Patronum ,Reparo Commands #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ExPl0iT-29
Copy link

Fixes

Fixes #16 by @jatinkrmalik
Fixes #21 by @jatinkrmalik
Fixes #20 by @jatinkrmalik
Fixes #18 by @jatinkrmalik
Fixes #19 by @jatinkrmalik
Fixes #17 by @jatinkrmalik

Description

Added six new commands to the wand tool:

  • Alohomora: Unlocks file or directory permissions, making them writable using chmod.
  • Obscuro: Clears the terminal history using history -c.
  • Riddikulus: Displays system stats in a humorous way, using tools like figlet, cowsay, and fortune.
  • Silencio: Mutes or unmutes the system's sound using amixer.
  • Expecto Patronum: Creates a backup of important files to a specified location using cp.
  • Reparo: Attempts to repair broken packages or dependencies based on the system's package manager.

Technical details

  • Alohomora: Prompts for user confirmation before unlocking file or directory permissions.
  • Obscuro: Clears the terminal history and notifies the user about the action.
  • Riddikulus: Provides different options for humorous output (cowsay, figlet, and fortune).
  • Silencio: Includes an option to unmute the sound with the --unmute flag.
  • Expecto Patronum: Supports specifying a custom backup destination.
  • Reparo: Detects the package manager and runs appropriate commands for package repair (apt, yum, pacman, or brew).

Tests

  1. Alohomora: Tested by changing permissions of different files and directories.
  2. Obscuro: Verified that terminal history is cleared as expected.
  3. Riddikulus: Tested with different fun options (figlet, cowsay, and fortune).
  4. Silencio: Verified both mute and unmute functionality.
  5. Expecto Patronum: Tested backup creation to both default and custom locations.
  6. Reparo: Tested with different package managers (apt, yum, pacman, and brew).

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main or master).
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    visible errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant