Coder Social home page Coder Social logo

pm-rs's Introduction

pm-rs

Process manager in rust

Easily start and stop processes like kubectl/ssh port forwards in the background.

pmrs 0.1.0
A rust process manager to start and manage processes

USAGE:
    pmrs <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    create     Creates and starts a new process with name
    help       Prints this message or the help of the given subcommand(s)
    list       Lists all processes being managed
    remove     Removes an inactive process with name
    restart    Restarts an active process with name
    start      Starts an inactive process with name
    stop       Stops an active process with name

Install:

cargo install --git https://github.com/AlexXi19/pm-rs

Example Usage:

 ~/Desktop/CS/pm-rs git:(main)

 ➜ pmrs create pf 'kubectl port-forward dev 5303:5303'


 ~/Desktop/CS/pm-rs git:(main)

 ➜ pmrs list

+------+-------+--------+---------------------------------+------------------------------------+
| Name | PID   | Status | Uptime                          | Command                            |
+------+-------+--------+---------------------------------+------------------------------------+
| pf   | 24655 | Active | 1 second, 571 ms and 264 µs ago | kubectl port-forward dev 5303:5303 |
+------+-------+--------+---------------------------------+------------------------------------+

 ~/Desktop/CS/pm-rs git:(main)

 ➜ curl localhost:5303/ping

pong

 ~/Desktop/CS/pm-rs git:(main)

 ➜ pmrs stop pf


 ~/Desktop/CS/pm-rs git:(main)

 ➜ pmrs list

+------+----------+----------+----------+------------------------------------+
| Name | PID      | Status   | Uptime   | Command                            |
+------+----------+----------+----------+------------------------------------+
| pf   | Inactive | Inactive | Inactive | kubectl port-forward dev 5303:5303 |
+------+----------+----------+----------+------------------------------------+

 ~/Desktop/CS/pm-rs git:(main)

 ➜ curl localhost:5303/ping

curl: (7) Failed to connect to localhost port 5303 after 5 ms: Connection refused

pm-rs's People

Contributors

alexxi19 avatar rust-kotlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.