Skip to content

Commit

Permalink
Test parser and action
Browse files Browse the repository at this point in the history
  • Loading branch information
colincasey committed Jan 15, 2025
1 parent 775a815 commit 783db85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#![allow(missing_docs)]
#![allow(unused_crate_dependencies)]
use std::fs;
use std::ops::Deref;
use std::path::Path;

fn main() {
println!("Hello, world!");
println!("{:?}", std::env::args());
let args = std::env::args().collect::<Vec<String>>();
match args.first().map(String::as_str) {
match args.get(1).map(String::as_str) {
Some("validate") => {
validate(&args[1..]);
validate(&args[2..]);
}
Some(invalid_command) => {
panic!("Not a valid command: {invalid_command}");
Expand Down

0 comments on commit 783db85

Please sign in to comment.