Skip to content

Commit

Permalink
ci: add default command line
Browse files Browse the repository at this point in the history
  • Loading branch information
cilki committed Jan 18, 2025
1 parent c462037 commit e7f1800
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions sandpolis-mobile/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
use bevy::prelude::bevy_main;
use sandpolis::CommandLine;
use sandpolis::{agent::AgentCommandLine, client::ClientCommandLine, CommandLine};

#[bevy_main]
fn main() {
sandpolis::client::main(CommandLine::default());
sandpolis::client::main(CommandLine {
// server_args: todo!(),
client_args: ClientCommandLine {},
agent_args: AgentCommandLine {
read_only: false,
poll: None,
agent_socket: "/tmp".into(),
},
server: None,
certificate: None,
debug: false,
trace: false,
storage: "/tmp".into(),
});
}
1 change: 1 addition & 0 deletions sandpolis/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pub struct ServerCommandLine {
#[clap(long)]
pub create_user: bool,

// TODO move to CommandLine
#[command(subcommand)]
command: Option<Commands>,
}
Expand Down

0 comments on commit e7f1800

Please sign in to comment.