From bcfd2c49e59bb6b4d51d3b46661a993b8e7ec6a3 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Fri, 23 May 2025 01:27:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D0=B8=D1=86=D0=B8=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 16 ++++++++++++++++ .vscode/settings.json | 5 +++++ README.md | 3 +++ dub.json | 14 ++++++++++++++ dub.selections.json | 6 ++++++ source/app.d | 14 ++++++++++++++ source/snapd/package.d | 3 +++ source/snapd/version_.d | 3 +++ 8 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 README.md create mode 100644 dub.json create mode 100644 dub.selections.json create mode 100644 source/app.d create mode 100644 source/snapd/package.d create mode 100644 source/snapd/version_.d diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3986dde --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +.dub +docs.json +__dummy.html +docs/ +/snapd +snapd.so +snapd.dylib +snapd.dll +snapd.a +snapd.lib +snapd-test-* +*.exe +*.pdb +*.o +*.obj +*.lst diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d1c022f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "editor.insertSpaces": false, + "editor.tabSize": 4, + "editor.detectIndentation": false +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e91f5bd --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# snapd + +Snapshot D - система резервного копирования на основе фиксации состояния файлов с помощью Git. diff --git a/dub.json b/dub.json new file mode 100644 index 0000000..798e277 --- /dev/null +++ b/dub.json @@ -0,0 +1,14 @@ +{ + "authors": [ + "Alexander Zhirov" + ], + "copyright": "Copyright © 2025, Alexander Zhirov", + "description": "A backup system based on tracking file states using Git", + "license": "GPL-2.0-or-later", + "name": "snapd", + "targetPath": "bin", + "targetType": "executable", + "dependencies": { + "commandr": "~>1.1.0" + } +} diff --git a/dub.selections.json b/dub.selections.json new file mode 100644 index 0000000..0c49417 --- /dev/null +++ b/dub.selections.json @@ -0,0 +1,6 @@ +{ + "fileVersion": 1, + "versions": { + "commandr": "1.1.0" + } +} diff --git a/source/app.d b/source/app.d new file mode 100644 index 0000000..497c1a8 --- /dev/null +++ b/source/app.d @@ -0,0 +1,14 @@ +import snapd; +import commandr; + +import core.stdc.stdlib : EXIT_SUCCESS; + +private string programName = "snapd"; + +int main(string[] args) +{ + auto argumets = new Program(programName, snapdVersion) + .parse(args); + + return EXIT_SUCCESS; +} diff --git a/source/snapd/package.d b/source/snapd/package.d new file mode 100644 index 0000000..45456d4 --- /dev/null +++ b/source/snapd/package.d @@ -0,0 +1,3 @@ +module snapd; + +public import snapd.version_; diff --git a/source/snapd/version_.d b/source/snapd/version_.d new file mode 100644 index 0000000..e09faec --- /dev/null +++ b/source/snapd/version_.d @@ -0,0 +1,3 @@ +module snapd.version_; + +enum snapdVersion = "0.0.1";