feat!: prepare -> scaffold
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
[alias]
 | 
					[alias]
 | 
				
			||||||
prepare = "run --bin prepare --"
 | 
					scaffold = "run --bin scaffold --quiet --release --"
 | 
				
			||||||
download = "run --bin download --"
 | 
					download = "run --bin download --quiet --release --"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
solve = "run --bin"
 | 
					solve = "run --bin"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							@@ -24,7 +24,7 @@ dependencies = [
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[[package]]
 | 
					[[package]]
 | 
				
			||||||
name = "aoc"
 | 
					name = "aoc"
 | 
				
			||||||
version = "0.2.0"
 | 
					version = "16.0.0"
 | 
				
			||||||
dependencies = [
 | 
					dependencies = [
 | 
				
			||||||
 "dotenv",
 | 
					 "dotenv",
 | 
				
			||||||
 "hashbrown 0.13.1",
 | 
					 "hashbrown 0.13.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "aoc"
 | 
					name = "aoc"
 | 
				
			||||||
version = "16.0.0"
 | 
					version = "17.0.0"
 | 
				
			||||||
edition = "2021"
 | 
					edition = "2021"
 | 
				
			||||||
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
 | 
					authors = ["Matej Janežič <janezic.mj@gmail.com>"]
 | 
				
			||||||
default-run = "aoc"
 | 
					default-run = "aoc"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@
 | 
				
			|||||||
- `.env.example`: example dotenv file
 | 
					- `.env.example`: example dotenv file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Cli
 | 
					### Cli
 | 
				
			||||||
- `cargo prepare <day>`: prepare solution files for `day`
 | 
					- `cargo scaffold <day>`: prepare solution files for `day`
 | 
				
			||||||
- `cargo download <day>`: download input file for `day`
 | 
					- `cargo download <day>`: download input file for `day`
 | 
				
			||||||
- `cargo solve <day>`: run solution against input for `day`
 | 
					- `cargo solve <day>`: run solution against input for `day`
 | 
				
			||||||
- `cargo all`: alias for run; runs solutions for all days
 | 
					- `cargo all`: alias for run; runs solutions for all days
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,7 +47,7 @@ fn main() {
 | 
				
			|||||||
    let day = match aoc::parse_args() {
 | 
					    let day = match aoc::parse_args() {
 | 
				
			||||||
        Ok(day) => day,
 | 
					        Ok(day) => day,
 | 
				
			||||||
        Err(_) => {
 | 
					        Err(_) => {
 | 
				
			||||||
            eprintln!("Need to specify a day (as integer). example: `cargo prepare 7`");
 | 
					            eprintln!("Need to specify a day (as integer). example: `cargo scaffold 7`");
 | 
				
			||||||
            process::exit(1);
 | 
					            process::exit(1);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
		Reference in New Issue
	
	Block a user