Skip to content

Commit

Permalink
add comments for action_api
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominion5254 committed Sep 26, 2024
1 parent 2272695 commit 2b48df9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions core/startos/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ pub fn action_api<C: Context>() -> ParentHandler<C> {
"get-input",
from_fn_async(get_action_input)
.with_display_serializable()
.with_call_remote::<CliContext>(),
.with_call_remote::<CliContext>()
.with_about("Get action input spec"),
)
.subcommand(
"run",
Expand All @@ -34,7 +35,8 @@ pub fn action_api<C: Context>() -> ParentHandler<C> {
}
Ok(())
})
.with_call_remote::<CliContext>(),
.with_call_remote::<CliContext>()
.with_about("Run service action"),
)
}

Expand Down
5 changes: 4 additions & 1 deletion core/startos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ pub fn server<C: Context>() -> ParentHandler<C> {

pub fn package<C: Context>() -> ParentHandler<C> {
ParentHandler::new()
.subcommand("action", action::action_api::<C>())
.subcommand(
"action",
action::action_api::<C>().with_about("Commands to get action input or run an action"),
)
.subcommand(
"install",
from_fn_async(install::install)
Expand Down

0 comments on commit 2b48df9

Please sign in to comment.