diff options
| author | OsCoder <oscoder@lczimmermann.eu> | 2026-06-13 14:05:01 +0200 |
|---|---|---|
| committer | OsCoder <oscoder@lczimmermann.eu> | 2026-06-13 14:05:01 +0200 |
| commit | 2fc45832605731240bd4636f61b0d7e66add9b05 (patch) | |
| tree | dc2dded71fa2c62ac64d6b24e3c6708b75a2727c | |
| parent | ef721a94f4fc403613543e84af23b744b527feee (diff) | |
| download | vbackup-2fc45832605731240bd4636f61b0d7e66add9b05.tar.xz vbackup-2fc45832605731240bd4636f61b0d7e66add9b05.zip | |
Added a config struct
| -rw-r--r-- | main.v | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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() } - - |
