init, shutdown and restart

This commit is contained in:
Aiden McClelland
2021-09-03 18:00:38 -06:00
parent 169e6e6562
commit b0a64e3f6b
14 changed files with 585 additions and 98 deletions

View File

@@ -65,6 +65,7 @@ pub fn echo(#[arg] message: String) -> Result<String, RpcError> {
s9pk::pack,
s9pk::verify,
inspect::inspect,
server,
package,
net::net,
auth::auth,
@@ -74,6 +75,11 @@ pub fn main_api() -> Result<(), RpcError> {
Ok(())
}
#[command(subcommands(system::logs, system::metrics, shutdown::shutdown, shutdown::restart))]
pub fn server() -> Result<(), RpcError> {
Ok(())
}
#[command(subcommands(
install::install,
install::uninstall,
@@ -96,3 +102,13 @@ pub fn package() -> Result<(), RpcError> {
pub fn portable_api() -> Result<(), RpcError> {
Ok(())
}
#[command(subcommands(version::git_info, echo,))]
pub fn recovery_api() -> Result<(), RpcError> {
Ok(())
}
#[command(subcommands(version::git_info, echo,))]
pub fn setup_api() -> Result<(), RpcError> {
Ok(())
}