From 2fc45832605731240bd4636f61b0d7e66add9b05 Mon Sep 17 00:00:00 2001 From: OsCoder Date: Sat, 13 Jun 2026 14:05:01 +0200 Subject: Added a config struct --- main.v | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/main.v b/main.v index a35b6be..078e1d5 100644 --- a/main.v +++ b/main.v @@ -1,6 +1,18 @@ module main import time +import os +import os.cmdline + +struct Backup_config { + source string @[required] + destination string @[required] + keep int = 10 + incremental bool + dry_run bool + verbose bool + compression bool +} fn main() { println('Welcome to vbackup!') @@ -11,5 +23,3 @@ fn get_timestamp() string { now := time.now() return now.format_rfc3339() } - - -- cgit v1.2.3