Palm Interface Goals #40
ethanknox-palmetto
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Palm could use a major leap in usability and insulation.
Things I think we want in an interface:
Here's some future api ideas
OR
we could introduce a class interface. That could be, honestly, pretty amazing.
The amazing thing about a class implementation is that we can pass the context into the instance at runtime - so we make it available as
self.context. But we could completely insulate the mechanics of how we are running things, letting us deal with as much podman / operating system / python BS was we want without bothering the user. This would give palm commands much longer shelf lives as the same command written originally for a docker / python3.6 / macOS env will live on in a podman / python4.0 / Redhat Linux dev env in 5 years.It also lets us "duplo" stuff like
self.run_on_hostandself.run_on_host_silentlywhich feels much more accessible thanrun_on_host(check=True, capture_output=True)to me. Sure we could support this style in a functional interface too.What do y'all think?
Beta Was this translation helpful? Give feedback.
All reactions