Skip to content

Instantly share code, notes, and snippets.

View CarterFendley's full-sized avatar
🐣

Carter Fendley CarterFendley

🐣
View GitHub Profile
@CarterFendley
CarterFendley / README.md
Created January 8, 2023 21:34
A cli used to run python and inject kwargs. Helpful for remote exection and simple reception of key value pairs.

The following is a CLI used to be able to run a python callable on a remote machine. Its purpose is the be the recieving end of a list of key=value pairs=:) and will inject this into the **kwargs of the specified callable.

This function was used after deploying code to the remote machine and configurations had been marshalled into the form given above.

Notes on functionality

The main CLI would construct this class by passing in a subparser named run to the parser value. With the following line, this class is automatically pointing the main CLI towards the do_it function when the run subparser is used.

self.parser.set_defaults(func=self.do_it)

The error

When runing gdb pHelmIvP and then r targ_vehicle.moos I got the following error

No mission config block found for /home/moos/moos-ivp/bin/pHelmIvP

And a note that the helim is in the MALCONFIG state