sophia
28dd174686
Setup builtin host plugin with capabilities
2022-04-25 12:24:03 -05:00
sophia
c6ad026070
Add sub commands 3 levels deep
2022-04-25 12:24:03 -05:00
sophia
de649b2154
Update protos
2022-04-25 12:24:03 -05:00
Chris Roberts
2f0dcda7e8
Check that the result is something that can be used as an exit code
2022-04-25 12:24:03 -05:00
Chris Roberts
c2fe40854f
Register otherplugin in builtins list
2022-04-25 12:24:03 -05:00
Chris Roberts
91c4414352
Add otherplugin builtin for non-isolated subcommand example
2022-04-25 12:24:03 -05:00
Chris Roberts
96c8e44a33
Update myplugin to proxy commands to subcommands
2022-04-25 12:24:03 -05:00
Chris Roberts
c69710329f
Update message access to use spec
2022-04-25 12:24:02 -05:00
Chris Roberts
64f4d51876
Build command information via component interface + cleanup
...
Uses the CommandInfoFunc via the Command component to extract
command information from the plugin. Mapper type functions
have been removed and extracted to isolated file. Reorganized
the functions a bit for internal consistency
2022-04-25 12:24:02 -05:00
Chris Roberts
799c33d76b
Extract core mappers out of basis and into isolated file
2022-04-25 12:24:02 -05:00
sophia
b4f0ef56df
Remove command metadata from service info
2022-04-25 12:24:02 -05:00
sophia
0e618a4fd1
Execute command with subcommand info
2022-04-25 12:24:02 -05:00
sophia
fd29c9df7c
Clean up ruby command service
2022-04-25 12:24:02 -05:00
sophia
5dd5ec84ee
Allow ruby errors to be caught by exception logger
2022-04-25 12:24:02 -05:00
sophia
36fa931bed
AUpdate ruby protos for sdk chagnes
2022-04-25 12:24:02 -05:00
sophia
4dce4d148d
Specify which command to get command info from
2022-04-25 12:24:02 -05:00
sophia
9f51d87038
Update ruby execute func for new proto
2022-04-25 12:24:02 -05:00
sophia
3107da72af
Execute subcommands
2022-04-25 12:24:02 -05:00
sophia
201b36ab15
Run correct command plugin for subcommands
2022-04-25 12:24:01 -05:00
sophia
475c5b41d8
Allow commands to have subcommands specified as a list of command components
2022-04-25 12:24:01 -05:00
sophia
e9e7768472
Register command with subcommands (subcommands are not seperate plugins)
2022-04-25 12:24:01 -05:00
sophia
5508f7cf39
Rename commands plugin -> command
2022-04-25 12:24:01 -05:00
sophia
1f19783dce
Make go plugin flags work
2022-04-25 12:24:01 -05:00
sophia
66300d9d32
Execute subcommands
2022-04-25 12:24:01 -05:00
sophia
fb6842a3c0
Make subcommands match new command info form
2022-04-25 12:24:01 -05:00
sophia
e4f6c403e1
Add some subcommands to myplugin
2022-04-25 12:24:01 -05:00
sophia
0a57d0ba10
Save point: go command plugin
2022-04-25 12:24:01 -05:00
sophia
7fb193f4a2
Add dummy endpoint for subcommands
2022-04-25 12:24:01 -05:00
sophia
3c491fafdd
Register subcommands with subcommands passed as part of command info
2022-04-25 12:24:01 -05:00
sophia
0414be7cf7
Don't get synopsis for subcommands
2022-04-25 12:24:01 -05:00
sophia
261fa5bbae
Fixes for command info message
2022-04-25 12:24:00 -05:00
sophia
06b1caedf8
Register all subcommands
2022-04-25 12:24:00 -05:00
sophia
c676768674
Get subcommands one level deep
2022-04-25 12:24:00 -05:00
sophia
65d990efc9
Start gatching subcommands to register
2022-04-25 12:24:00 -05:00
sophia
072e06ca79
Get list of subcommands
2022-04-25 12:24:00 -05:00
sophia
1f432350ea
Add dummy endpoint for subcommands
2022-04-25 12:24:00 -05:00
sophia
893e37711e
Setup dummy env
2022-04-25 12:24:00 -05:00
sophia
5498c22983
Get help and flags for subcommands
2022-04-25 12:24:00 -05:00
sophia
254c462add
De-duplicate component type factory map
2022-04-25 12:24:00 -05:00
sophia
d004125712
Register builtin plugins against all available components
2022-04-25 12:24:00 -05:00
Chris Roberts
ab59e254ac
Revert addition of readers as they are no longer required
2022-04-25 12:24:00 -05:00
Chris Roberts
a39eebd882
Include prepended method for adding reader
2022-04-25 12:23:59 -05:00
Chris Roberts
5613f0b4ad
Use ephemeral command plugin class to process arguments for subcommand
2022-04-25 12:23:59 -05:00
Chris Roberts
a103f6fb17
Restore the machine class and update thin class to remote module
2022-04-25 12:23:59 -05:00
Chris Roberts
3512028ca4
Define callbacks which should be run when enabling server mode
2022-04-25 12:23:59 -05:00
Chris Roberts
cefb514f77
If running as server enable server mode before setting up
2022-04-25 12:23:59 -05:00
Chris Roberts
d501d77005
Add accessors to get to cli components
2022-04-25 12:23:59 -05:00
Chris Roberts
074478c876
Include server address within environment for proper mapping
2022-04-25 12:23:59 -05:00
Chris Roberts
d9893c1a13
Return immediately on error to prevent inspecting nil result
2022-04-25 12:23:59 -05:00
Chris Roberts
bba557c29d
Close the client to shutdown the plugin and prevent hang.
...
This also updates the Ruby runtime usage to pass the ClientProtocol
instead of the full client since after init we only need it for
dispensing plugins.
2022-04-25 12:23:59 -05:00