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

Chmod! #1126

Open
waffle-frame opened this issue Apr 20, 2024 · 9 comments
Open

Chmod! #1126

waffle-frame opened this issue Apr 20, 2024 · 9 comments
Labels
feature Feature / Tool request or idea good first issue Good for newcomers under consideration We like the idea / feedback but don't commit to it yet.

Comments

@waffle-frame
Copy link

What feature or new tool do you think should be added to DevToys?

chmod allows you to control access rights to files and directories on UNIX-like operating systems

Why do you think this is needed?

Including chmod in a universal tool will make it more complete and functional. This will add another useful feature for developers

Solution/Idea

https://github.com/Mayowa-Ojo/chmod-cli

Comments

No response

@waffle-frame waffle-frame added feature Feature / Tool request or idea untriaged labels Apr 20, 2024
@waffle-frame waffle-frame changed the title C Chmod! Apr 20, 2024
@veler
Copy link
Collaborator

veler commented Apr 20, 2024

@phiali started working on it some time ago! https://github.com/phiali/DevToys/tree/chmod-calculator

image

@veler veler added good first issue Good for newcomers under consideration We like the idea / feedback but don't commit to it yet. and removed untriaged labels Apr 20, 2024
@waffle-frame
Copy link
Author

@phiali started working on it some time ago! https://github.com/phiali/DevToys/tree/chmod-calculator

Great job @phiali!
If you have time and desire to make it a little more functional, study the material with sticky bit.

@phiali
Copy link

phiali commented Apr 20, 2024

Thanks! It was all very bare-bones and most definitely work-in-progress. I wasn't going to look at it again until after DevToys 2.0 came out. I had quite a trying time of code iterations taking 30 to 40 seconds to show up which made debugging a nightmare. Due to architectural changes in DevToys 2.0 this should apparently be a lot better.

But if anyone else would like to use the code as a basis for something now then please do go ahead 🙂

@Antjac
Copy link
Contributor

Antjac commented Apr 25, 2024

I think I can do it to port to DevToys 2.0, it seems to be quite easy

@veler
Copy link
Collaborator

veler commented Apr 25, 2024

I think I can do it to port to DevToys 2.0, it seems to be quite easy

Sure thing. With pleasure!
Also, how about giving this the opportunity to test our documentation and SDK again?

Tools in DevToys 2.0 are now extensions. You can make your own tools and publish them under your own name. Here is how (this documentation is complete, but not published on a dedicated website yet):

  1. Setup your dev environment:
    https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/getting-started/setup.md
  2. Create an extension project:
    https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/getting-started/create-an-extension.md
  3. Build and debug:
    https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/getting-started/debug-an-extension.md
    a. How to make a UI:
    https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/guidelines/UX/basic-input/button.md
    b. How to make a CLI tool:
    https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/guidelines/command-line-tool.md
  4. Publish it:
    https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/getting-started/publish.md

Finally, to read this documentation in a more pleasant way, I can suggest you to clone the Documentation repository and follow the Setup and Run Locally instructions here: https://github.com/DevToys-app/Documentation/blob/main/README.md

@Antjac
Copy link
Contributor

Antjac commented Apr 25, 2024

Thx @veler, concerning the location, don't you think the best one is "Encoder/Decoder" than "Convert" ?

@veler
Copy link
Collaborator

veler commented Apr 25, 2024

I agree! It would fit better.

@dineiar
Copy link
Contributor

dineiar commented May 16, 2024

Hello @veler! First of all, thanks for your work. I am eagerly waiting for DevToys 2.0 release!

I've just cloned the repositories of DevToys and DevToys.Tools and built them on a Mac (arm64) using VS Code following the documentation you linked here. It worked mostly fine (I was able to run the GUI and use the tools). However, I would like to point out a few things:

  1. I had to change the program attribute of the "DevToys MacOS arm64" entry in launch.json to:
    "program": "${workspaceFolder}/bin/Debug/AnyCPU/DevToys.MacOS/net8.0-macos/osx-arm64/DevToys.app/Contents/MacOS/DevToys",
    The original path had a few extra .MacOS in a few places. I was about to commit this change and open a PR, but I'm not sure if this path is obsolete or if I have some local configuration that generates the app in a diferent path for some reason, so I'm just reporting it here. The "DevToys MacOS x64" entry probably has the same situation, but I didn't test it.

  2. The first part in the documentation for "build and debug" an extension (https://github.com/DevToys-app/Documentation/blob/main/articles/extension-development/getting-started/debug-an-extension.md), under the title "One-time configuration", involves creating a Properties folder and a launchSettings.json file, but do not mention what IDE is this focused on. I thought that launchSettings.json was only used by Visual Studio, but to be honest I didn't test it on VSCode to check (I built the Tools project using the build.sh script and invoked the GUI directly using the command line with exported variables to load the extension). So, just to confirm: is this Properties/launchSettings.json file applicable to VSCode and JetBrains Rider as well?

I'm sorry for extending this discussion in this unrelated issue, I just wanted to reply to your previous comment here.

@veler
Copy link
Collaborator

veler commented May 16, 2024

Hi @dineiar

  1. The original path had a few extra .MacOS in a few places.

Great catch! These are obsolete path and need to be updated. Feel free to open a PR for it 😁

is this Properties/launchSettings.json file applicable to VSCode and JetBrains Rider as well?

Yes! It applies to VS, VS Code and Rider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature / Tool request or idea good first issue Good for newcomers under consideration We like the idea / feedback but don't commit to it yet.
Projects
None yet
Development

No branches or pull requests

5 participants