Skip to content

Commit

Permalink
fixes readme, travis token
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 committed Apr 27, 2020
1 parent 7761965 commit 6b3f54f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ before_deploy:
deploy:
provider: releases
skip_cleanup: true
api_key:
token:
secure: AOOErC2ID5FygRZdTb/dAMBP8TDkf99giuR3klx3lH0dT29wjRxxcSrs64nuw6n7PlhO5LsOFqjtJLACKJ+ErI/8KscDwMAhyfmRNJKkLu0Ly/TMCfFd3A/rqqtM13idhrErR7uOE6kvOI2Dh/rU6F4odr1mCtpieZWxXOJZ2LfsQcOscmnMinMYT5ophDaGwiyTAfaUIdCLdFg8hM4PNZ68DA9q1gaHlzPcdggQOp0LtGZnFdtuX+AgDT8rI4ANHKm/Rd+loi2DB4Y/lMDRykRGASlNI4/NX/u5+44GdceNktcoVz4lUG5bFvyYUqy8rMeabGpFvKI/0VU3sDIeJK/tznCb0FOo4H3pAQmASz/gTPKOyNY+tzEC9z3yj11ev9ZFGd9PXJmnW3sO3VZD41uRyRGCj2X6nB48TrXAlF6jUT+tu7uRvCKHQ50zM5uF1BhCOAvO9IC31YXOKjnZ/coGwr2QmtlisWTGUHeER6npAd6BACf/9GCB7PjIfYUfq0wy0RW6065StHKhBc2pJeWwT5hXFGI3LckNyQmsc5M6bgh4asWvSK8Pbx9maY+gncvwbeogx5sPPibvGQmg/QfLIbqha13guCl39ny1xXEl0xRkK0EwcofkBCchmhtql0vPtmCSe0T3IOxihDywPNlnV38V8yUDk5bQm65iHh0=
file: ${REPO}-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.tar.gz
on:
Expand Down
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ pprep ^
prep ^
--output "test_data/out/*-marks.png" ^
--format 10cm/15cm ^
--padding 5mm ^
--margins 5mm ^
--cut-marks ./1mm ^
--padding 5mm ^
--margins 5mm ^
--cut-marks ./1mm ^
--dpi 90
```

Expand Down Expand Up @@ -106,23 +106,24 @@ SUBCOMMANDS:
```
Prepare images for printing (add cut marks, 'mats', test patterns, EXIF information, ...).
┏━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━┓
┃ │ │ ┃----- format
┠─── ---------------------------- ───┨
┃ | |---┃----- framed-size
┃ | ┏━━━━━━━━━━━━━━━━━━━━┓ | ┃
┃ | ┃ ┃---|---┃----- image-size
┃ | ┃ ┃ | ┃ border
┃ | ┃ ┃ | ┃
┃ | ┃ ┃ -|---┃----- padding
┃ | ┃ ┃ | ┃
┃ | ┃ ┃ | -┃----- margins
┃ | ┗━━━━━━━━━━━━━━━━━━━━┛ | ┃
┃ | |---┃----- cut-frame
┠─── ---------------------------- ───┨
┃ │ │---┃----- cut-marks
┗━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━┛
____________________________________
| | | |
| | | |----- format
|--- ---------------------------- ---|
| | ____________________ |---|----- framed-size
| | | | | |
| | | |---|---|----- image-size
| | | | | | border
| | | | | |
| | | | -|---|----- padding
| | | | | |
| | | | | -|----- margins
| | |____________________| | |
| | |---|----- cut-frame
|--- ---------------------------- ---|
| | |---|----- cut-marks
|___|____________________________|___|
USAGE:
pprep prep [FLAGS] [OPTIONS] --format <format> --output <output>
Expand Down Expand Up @@ -204,7 +205,7 @@ FLAGS:

To use this crate as a rust library, add the following to your `Cargo.toml` dependencies section:
```
ppa = { git = "https://github.com/mlange-42/print-prep.git" }
print-prep = { git = "https://github.com/mlange-42/print-prep.git" }
```

_Warning:_ The API is still incomplete and highly unstable, so be prepared for frequent changes.
Expand Down
33 changes: 17 additions & 16 deletions src/op/prep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ use structopt::StructOpt;
/// Prepare images for printing (add cut marks, 'mats', test patterns, EXIF information, ...).
///
/// <pre>
/// ┏━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━┓
/// ┃ │ │ ┃----- format
/// ┠─── ---------------------------- ───┨
/// ┃ | |---┃----- framed-size
/// ┃ | ┏━━━━━━━━━━━━━━━━━━━━┓ | ┃
/// ┃ | ┃ ┃---|---┃----- image-size
/// ┃ | ┃ ┃ | ┃ border
/// ┃ | ┃ ┃ | ┃
/// ┃ | ┃ ┃ -|---┃----- padding
/// ┃ | ┃ ┃ | ┃
/// ┃ | ┃ ┃ | -┃----- margins
/// ┃ | ┗━━━━━━━━━━━━━━━━━━━━┛ | ┃
/// ┃ | |---┃----- cut-frame
/// ┠─── ---------------------------- ───┨
/// ┃ │ │---┃----- cut-marks
/// ┗━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━┛
/// ________________________________________
/// | | | |
/// | | | |----- format
/// |---- ------------------------------ ----|
/// | | ____________________ |----|----- framed-size
/// | | | | | |
/// | | | |----|----|----- image-size
/// | | | | | | border
/// | | | | | |
/// | | | | -|----|----- padding
/// | | | | | |
/// | | | | | -|----- margins
/// | | |____________________| | |
/// | | |----|----- cut-frame
/// |---- ------------------------------ ----|
/// | | |----|----- cut-marks
/// |____|______________________________|____|
/// </pre>
#[doc(test(ignore))]
#[structopt(verbatim_doc_comment)]
Expand Down

0 comments on commit 6b3f54f

Please sign in to comment.