commit bcfd2c49e59bb6b4d51d3b46661a993b8e7ec6a3 Author: Alexander Zhirov Date: Fri May 23 01:27:15 2025 +0300 Инициализация проекта 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";