Skip to content

Riad's commit#2

Open
MRIT03 wants to merge 1 commit intothelebdev:masterfrom
MRIT03:test-branch
Open

Riad's commit#2
MRIT03 wants to merge 1 commit intothelebdev:masterfrom
MRIT03:test-branch

Conversation

@MRIT03
Copy link

@MRIT03 MRIT03 commented Jul 11, 2022

Edited everything, including the README.md file. The script, single command version, works properly for me on windows. Please make sure it works properly on mac too!

Copy link
Owner

@thelebdev thelebdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of comments:

  1. It would be good practice to provide the accepted values when the user is running /.installer.sh "<OS>". A better user experience is to let the user run ./installer.sh, and after they run the script, the code would return "Which OS are you using? (MacOS, Windows)
  2. Most of the logic for MacOS and Windows is similar, with a small variation for the copying mechanism. To implement the DRY principle, it would be better practice to combine the common logic in a single file, and the different logic would be part of an if-else statement depending on the user's operating system.
  3. Make sure to update the documentation of the files
  4. I like the cleanliness of your work. Highly appreciated

#############
# File name: run.sh
# Purpose: When executed, this will copy a complex password to the user's clipboard
# Created by: Christophe El-Khoury (thelebdev)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the Created by part of the documentation and the file name

@thelebdev
Copy link
Owner

Closes #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants