Merge branch 'master' of github.com:MajorBarnulf/epitls-pi

This commit is contained in:
JOLIMAITRE Matthieu 2022-10-05 01:43:31 +02:00
commit de3974725a
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -138,7 +138,7 @@ checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
[[package]]
name = "epitls-pi"
version = "1.2.0"
version = "1.2.1"
dependencies = [
"chrono",
"clap",

View file

@ -1,6 +1,6 @@
[package]
name = "epitls-pi"
version = "1.2.0"
version = "1.2.1"
edition = "2021"
license = "GPL-3.0+"
description = "A little helper tool meant to ease the developpment of the C piscine at EPITA/Toulouse."

View file

@ -23,7 +23,7 @@ pub fn add() {
pub fn main(message: Option<String>) {
let message = message.unwrap_or_else(|| Utc::now().format("pi - %d/%m/%Y %H:%M").to_string());
let timestamp = Utc::now().timestamp();
let suffix = format!("pi-{timestamp}");
let suffix = format!("pi{timestamp}");
let tag = Config::get_local()
.unwrap_or_else(|| {
log_error("no config file found.\nPlease initialize with 'pi init <tag-prefix>'");