and eventually these things wont be ruby but see how it goes
yo61
Well hell, that works :)
kpease joined the channel
kpease joined the channel
higgins joined the channel
Next problem...
If I do the cve args as options to the application, they get stored in the configuration as an array
In the agent, ie. the code that gets used directly if called with "mco rpc yum ..." then the cve args would be specified as eg. cve='foo bar', ie. a string
Volcane
ok
yo61
So, do I convert the args from the app into a string as well?
Volcane
foo.join(" ")
yo61
Yeah, that's what I mean
Volcane
yeah
end of the day, what you would have typed on mco rpc .... has to be the API you call from the app
yo61
ie. replace configuration[:cve] (which will be an array) with a string
Volcane
so if its gotta be a string you have to go send it a string
yo61
Yeah, OK. Just sorting it in my head
What kind of turtured genuis dreamed up this stuff?? :)
Volcane
:)
yo61
*tortured genius
Volcane
its the same for any cli talking to any API :) just not something ops people do much of i guess
yo61
It's a mindset
Volcane
do have some ideas for a more natual feeling 'mco rpc' though
yo61
That makes things make more sense in my head when you say "api"
The agent is the provider and the application consumes it
Volcane
yup, exactly, your agent is jsut a API
the DDL is just a API description - json schema, wsdl, swagger, etc, like all APIs have
mco rpc is a generic API client - apps are where you tailor the UI to your tastes if the rpc one doesnt do it for you
yo61
:thu
👍
(does that display on your client?)
Volcane
shockingly yes hehe
yo61
Am assuming it's irccloud-specific
Volcane
as long as its std emoji and not the bastardised app specific ones its fine they're just UTF8