Skip to content

Commit

Permalink
Change name of project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ott-cop committed Feb 22, 2024
1 parent 12b7924 commit 759a3a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "getpic"
name = "getpicture"
version = "0.1.0"
edition = "2021"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Imxeldownload</h1>
<h1>Getpicture</h1>

> <p>Automation to download images using Excel cell names.</p>
Expand All @@ -14,12 +14,12 @@
<h2>Usage</h2>
<p>Follow the template for using the script:</p>

$ imxceldownload FILE.xlsx SHEET_NAME INITIAL_LINE INITIAL_COLUMN FINAL_LINE FINAL_COLUMN
$ getpicture FILE.xlsx SHEET_NAME INITIAL_LINE INITIAL_COLUMN FINAL_LINE FINAL_COLUMN

<p>When using this command it will create a folder called "downloads" and the downloaded images will be in the same folder.</p><br/>

<h2>Example</h2>

$ imxceldownload products.xlsx ProductsSheet 3 4 20 4
$ getpicture products.xlsx ProductsSheet 3 4 20 4

<p>Using this exact command it will look for the products.xlsx file, the ProductsSheet sheet and then it will download all the images based on the cell names starting from line 3 of column 4 to line 20 of the same column.</p>
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use futures::future;
use image_search::{download, Arguments};




#[tokio::main]
async fn main() -> Result<(), String> {
let args: Vec<_> = env::args().collect();
Expand All @@ -15,7 +13,7 @@ async fn main() -> Result<(), String> {

if args.len() < 7 {
println!("\nUSAGE:\n\n");
println!("getpic ARQUIVO.xlsx SHEET_NAME LINHA_INICIAL COLUNA_INICIAL LINHA_FINAL COLUNA_FINAL\n");
println!("getpicture ARQUIVO.xlsx SHEET_NAME LINHA_INICIAL COLUNA_INICIAL LINHA_FINAL COLUNA_FINAL\n");
return Err(format!("{icon_error} Digite corretamente os campos."));
}

Expand Down

0 comments on commit 759a3a0

Please sign in to comment.