Merge branch 'master' of github.com:MajorBarnulf/epitls-pi
This commit is contained in:
commit
de3974725a
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -138,7 +138,7 @@ checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "epitls-pi"
|
name = "epitls-pi"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "epitls-pi"
|
name = "epitls-pi"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "GPL-3.0+"
|
license = "GPL-3.0+"
|
||||||
description = "A little helper tool meant to ease the developpment of the C piscine at EPITA/Toulouse."
|
description = "A little helper tool meant to ease the developpment of the C piscine at EPITA/Toulouse."
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub fn add() {
|
||||||
pub fn main(message: Option<String>) {
|
pub fn main(message: Option<String>) {
|
||||||
let message = message.unwrap_or_else(|| Utc::now().format("pi - %d/%m/%Y %H:%M").to_string());
|
let message = message.unwrap_or_else(|| Utc::now().format("pi - %d/%m/%Y %H:%M").to_string());
|
||||||
let timestamp = Utc::now().timestamp();
|
let timestamp = Utc::now().timestamp();
|
||||||
let suffix = format!("pi-{timestamp}");
|
let suffix = format!("pi{timestamp}");
|
||||||
let tag = Config::get_local()
|
let tag = Config::get_local()
|
||||||
.unwrap_or_else(|| {
|
.unwrap_or_else(|| {
|
||||||
log_error("no config file found.\nPlease initialize with 'pi init <tag-prefix>'");
|
log_error("no config file found.\nPlease initialize with 'pi init <tag-prefix>'");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue