forked from vieter-v/vieter
refactor: some small changes before PR
This commit is contained in:
parent
b66d1161ed
commit
ab81eebd87
7 changed files with 31 additions and 34 deletions
|
|
@ -1,6 +1,7 @@
|
|||
module models
|
||||
|
||||
import time
|
||||
import os
|
||||
|
||||
pub struct BuildLog {
|
||||
pub mut:
|
||||
|
|
@ -28,6 +29,13 @@ pub fn (bl &BuildLog) str() string {
|
|||
return str
|
||||
}
|
||||
|
||||
// path returns the path to the log file, relative to the logs directory
|
||||
pub fn (bl &BuildLog) path() string {
|
||||
filename := bl.start_time.custom_format('YYYY-MM-DD_HH-mm-ss')
|
||||
|
||||
return os.join_path(bl.target_id.str(), bl.arch, filename)
|
||||
}
|
||||
|
||||
[params]
|
||||
pub struct BuildLogFilter {
|
||||
pub mut:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue