You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

justfile 1.3KB

3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. release-build:
  2. cargo build --bin tzconvert --release
  3. cargo build --bin cet2est --release
  4. cargo build --bin est2cet --release
  5. install: release-build
  6. cp target/release/tzconvert ~/.cargo/bin/
  7. cp target/release/cet2est ~/.cargo/bin/
  8. cp target/release/est2cet ~/.cargo/bin/
  9. debug-build:
  10. cargo build --bin tzconvert
  11. cargo build --bin cet2est
  12. cargo build --bin est2cet
  13. send-release remote-machine: release-build
  14. scp -C target/release/tzconvert {{remote-machine}}:~/.cargo/bin
  15. scp -C target/release/cet2est {{remote-machine}}:~/.cargo/bin
  16. scp -C target/release/est2cet {{remote-machine}}:~/.cargo/bin
  17. cargo +args:
  18. cargo {{args}}
  19. run-examples: debug-build
  20. ./target/debug/tzconvert CET EST 2pm
  21. ./target/debug/tzconvert EST CET 1:30pm tue
  22. ./target/debug/tzconvert Africa/Timbuktu America/Jamaica 18:30 --date 2021-11-03
  23. ./target/debug/tzconvert Africa/Timbuktu America/Jamaica 18:30 sat --date 2021-11-03
  24. ./target/debug/cet2est 2pm
  25. ./target/debug/cet2est 1:30pm tue
  26. ./target/debug/cet2est 14:15 -d 2021-11-03
  27. ./target/debug/cet2est 14:15 tue -d 2021-11-03
  28. ./target/debug/est2cet 2pm
  29. ./target/debug/est2cet 1:30pm tue
  30. ./target/debug/est2cet 14:15 -d 2021-11-03
  31. ./target/debug/est2cet 14:15 tue -d 2021-11-03