Skip to content

tal-rofe/sudo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI status npm downloads npm license version

sudo-cli

Run any script with privileged permissions, prompting the user with a graphical OS dialog if necessary

This package is under development (and slow one.. 😐) so feel free to help it by making a PR

Installation

Globally

npm install --global sudo-cli

Locally

npm install --save-dev sudo-cli

Usage

You need to provide the name of your application for your application (optional) and the command to be executed with privileged permissions.

$ sudo-cli --name "[your app name]" "<command to run>"

ESM support

sudo-cli supports only ESM modules. For any issue regarding this, please visit this link https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Support

For support, email [email protected] or open an issue at sudo-cli issues.

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started.

Please adhere to this project's CODE_OF_CONDUCT.md.

If you want to make PR please first check your code by:

  1. Run pnpm i to install dependencies
  2. Build your source code by running pnpm build
  3. Run node ./bin/sudo-cli.js -n "test" "test" and check results of your code

Authors

License

MIT