DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Chmod!

Open waffle-frame opened this issue 2 months ago • 11 comments

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 avatar Apr 20 '24 12:04 waffle-frame

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

image

veler avatar Apr 20 '24 14:04 veler

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

waffle-frame avatar Apr 20 '24 14:04 waffle-frame

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 🙂

phiali avatar Apr 20 '24 23:04 phiali

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

Antjac avatar Apr 25 '24 10:04 Antjac

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

veler avatar Apr 25 '24 14:04 veler

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

Antjac avatar Apr 25 '24 16:04 Antjac

I agree! It would fit better.

veler avatar Apr 25 '24 16:04 veler