Skip to content

Commit fd8194a

Browse files
committed
refactor: update folder names
1 parent b7f89db commit fd8194a

33 files changed

Lines changed: 103 additions & 102 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Custom
2+
examples
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
# Re-export command classes for backward compatibility
8-
from src.commands import (
8+
from autotarcompress.commands import (
99
BackupCommand,
1010
CleanupCommand,
1111
Command,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""Command pattern implementations for backup operations.
2+
3+
This module aggregates all command classes for easy importing.
4+
"""
5+
6+
from autotarcompress.commands.command import Command
7+
from autotarcompress.commands.backup import BackupCommand
8+
from autotarcompress.commands.cleanup import CleanupCommand
9+
from autotarcompress.commands.decrypt import DecryptCommand
10+
from autotarcompress.commands.encrypt import EncryptCommand
11+
from autotarcompress.commands.extract import ExtractCommand
12+
from autotarcompress.commands.info import InfoCommand
13+
14+
__all__ = [
15+
"Command",
16+
"BackupCommand",
17+
"CleanupCommand",
18+
"DecryptCommand",
19+
"EncryptCommand",
20+
"ExtractCommand",
21+
"InfoCommand",
22+
]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
import time
1616
from pathlib import Path
1717

18-
from src.commands.command import Command
19-
from src.config import BackupConfig
20-
from src.utils import SizeCalculator
18+
from autotarcompress.commands.command import Command
19+
from autotarcompress.config import BackupConfig
20+
from autotarcompress.utils import SizeCalculator
2121

2222

2323
class BackupCommand(Command):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import os
1010
from pathlib import Path
1111

12-
from src.commands.command import Command
13-
from src.config import BackupConfig
12+
from autotarcompress.commands.command import Command
13+
from autotarcompress.config import BackupConfig
1414

1515

1616
class CleanupCommand(Command):
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import re
1111
import subprocess
1212

13-
from src.commands.command import Command
14-
from src.config import BackupConfig
15-
from src.security import ContextManager
13+
from autotarcompress.commands.command import Command
14+
from autotarcompress.config import BackupConfig
15+
from autotarcompress.security import ContextManager
1616

1717

1818
class DecryptCommand(Command):
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import subprocess
1111
from typing import Tuple
1212

13-
from src.commands.command import Command
14-
from src.config import BackupConfig
15-
from src.security import ContextManager
13+
from autotarcompress.commands.command import Command
14+
from autotarcompress.config import BackupConfig
15+
from autotarcompress.security import ContextManager
1616

1717

1818
class EncryptCommand(Command):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import tarfile
99
from pathlib import Path
1010

11-
from src.commands.command import Command
12-
from src.config import BackupConfig
11+
from autotarcompress.commands.command import Command
12+
from autotarcompress.config import BackupConfig
1313

1414

1515
class ExtractCommand(Command):

0 commit comments

Comments
 (0)