Инициализация проекта

This commit is contained in:
Alexander Zhirov 2025-05-23 01:27:15 +03:00
commit bcfd2c49e5
Signed by: alexander
GPG key ID: C8D8BE544A27C511
8 changed files with 64 additions and 0 deletions

16
.gitignore vendored Normal file
View file

@ -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

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"editor.insertSpaces": false,
"editor.tabSize": 4,
"editor.detectIndentation": false
}

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# snapd
Snapshot D - система резервного копирования на основе фиксации состояния файлов с помощью Git.

14
dub.json Normal file
View file

@ -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"
}
}

6
dub.selections.json Normal file
View file

@ -0,0 +1,6 @@
{
"fileVersion": 1,
"versions": {
"commandr": "1.1.0"
}
}

14
source/app.d Normal file
View file

@ -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;
}

3
source/snapd/package.d Normal file
View file

@ -0,0 +1,3 @@
module snapd;
public import snapd.version_;

3
source/snapd/version_.d Normal file
View file

@ -0,0 +1,3 @@
module snapd.version_;
enum snapdVersion = "0.0.1";