Skip to content

Commit

Permalink
changed run to start and updated demo tape
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Aug 17, 2023
1 parent 686254f commit e5ff061
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

PacketRaven is a command-line dashboard that retrieves location telemetry sent by high-altitude balloon payloads.
The program is designed to be run during a flight and display information in a terminal user interface (TUI):
![demo](https://github.com/UMDBPP/PacketRaven/blob/main/docs/images/demo.gif)
![demo](https://github.com/UMDBPP/PacketRaven/blob/main/docs/demo/demo.gif)

## Features

Expand Down Expand Up @@ -35,11 +35,11 @@ The program is designed to be run during a flight and display information in a t
## Usage
### `run`
### `start`
Run your executable from the terminal with the `run` subcommand and the path to your configuration file:
Run your executable from the terminal with the `start` subcommand and the path to your configuration file:
```shell
./packetraven_Windows.exe run examples/example_1.yaml
./packetraven_Windows.exe start examples/example_1.yaml
```
[Instructions for creating a configuration file can be found in the documentation](https://packetraven.readthedocs.io/en/latest/configuration.html).
Expand Down
Binary file added docs/demo/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
8 changes: 4 additions & 4 deletions docs/images/demo.tape → docs/demo/demo.tape
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Output docs/images/demo.gif

Set Shell nu
Set Shell bash
Set FontSize 20
Set Width 1200
Set Height 700
Set Padding 0
Set Theme "Catppuccin Macchiato"

Type "./packetraven examples/example_1.yaml"
Type "./packetraven start examples/example_1.yaml"
Sleep 500ms
Enter
Sleep 2.5s
Expand All @@ -19,7 +19,7 @@ Up
Sleep 3s
Escape
Sleep 500ms
Type "./packetraven examples/example_3.yaml"
Type "./packetraven start examples/example_3.yaml"
Sleep 500ms
Enter
Sleep 2.5s
Expand All @@ -29,7 +29,7 @@ Right
Sleep 3s
Escape
Sleep 500ms
Type "./packetraven demo.yaml"
Type "./packetraven start docs/demo/demo.yaml"
Sleep 500ms
Enter
Sleep 4.5s
Expand Down
13 changes: 13 additions & 0 deletions docs/demo/demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
callsigns:
- SQ5RB-11
- BSS43
- W5BII-11
- KB6USJ-11

time:
start: 2023-08-16 00:00:00
end: 2023-08-18 00:00:00

connections:
sondehub: {}

Binary file removed docs/images/demo.gif
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct PacketravenCommand {
#[derive(clap::Subcommand)]
enum Command {
/// run program from configuration
Run {
Start {
/// file path to configuration
config_file: std::path::PathBuf,
},
Expand Down Expand Up @@ -67,7 +67,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let arguments = PacketravenCommand::parse();

match arguments.command {
Command::Run { config_file } => {
Command::Start { config_file } => {
let file = std::fs::File::open(config_file).unwrap();
let configuration: crate::configuration::RunConfiguration =
serde_yaml::from_reader(file).expect("error reading configuration");
Expand Down

0 comments on commit e5ff061

Please sign in to comment.