ftagger 0.1.2__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ftagger-0.1.2 → ftagger-0.1.4}/PKG-INFO +2 -2
- {ftagger-0.1.2 → ftagger-0.1.4}/README.md +1 -1
- {ftagger-0.1.2 → ftagger-0.1.4}/pyproject.toml +1 -1
- {ftagger-0.1.2 → ftagger-0.1.4}/src/ftagger.egg-info/PKG-INFO +2 -2
- ftagger-0.1.4/src/globals.py +8 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/utils.py +5 -3
- ftagger-0.1.2/src/globals.py +0 -8
- {ftagger-0.1.2 → ftagger-0.1.4}/LICENSE.txt +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/setup.cfg +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/ansi_codes.py +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/commands.py +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/ftagger.egg-info/SOURCES.txt +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/ftagger.egg-info/dependency_links.txt +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/ftagger.egg-info/entry_points.txt +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/ftagger.egg-info/top_level.txt +0 -0
- {ftagger-0.1.2 → ftagger-0.1.4}/src/main.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ftagger
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Simple command-line file tagger
|
|
5
5
|
Author-email: Charlie O'Dwyer <charlieodwyer2289@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -13,7 +13,7 @@ Dynamic: license-file
|
|
|
13
13
|
|
|
14
14
|
# Preface
|
|
15
15
|
|
|
16
|
-
Most of this project was created before I began using GitHub, which is why the first commit is
|
|
16
|
+
Most of this project was created before I began using GitHub, which is why the first commit is already almost finished.
|
|
17
17
|
|
|
18
18
|
I have yet to implement proper error handling, as well as a few commands.
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Preface
|
|
2
2
|
|
|
3
|
-
Most of this project was created before I began using GitHub, which is why the first commit is
|
|
3
|
+
Most of this project was created before I began using GitHub, which is why the first commit is already almost finished.
|
|
4
4
|
|
|
5
5
|
I have yet to implement proper error handling, as well as a few commands.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ftagger
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Simple command-line file tagger
|
|
5
5
|
Author-email: Charlie O'Dwyer <charlieodwyer2289@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -13,7 +13,7 @@ Dynamic: license-file
|
|
|
13
13
|
|
|
14
14
|
# Preface
|
|
15
15
|
|
|
16
|
-
Most of this project was created before I began using GitHub, which is why the first commit is
|
|
16
|
+
Most of this project was created before I began using GitHub, which is why the first commit is already almost finished.
|
|
17
17
|
|
|
18
18
|
I have yet to implement proper error handling, as well as a few commands.
|
|
19
19
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
FMDATA = Path.home() / ".fmdata"
|
|
4
|
+
FMDEFAULT = f"{Path.home()}.fmdata/.fmdefault"
|
|
5
|
+
FMALIASES = f"{Path.home()}.fmdata/.fmaliases"
|
|
6
|
+
FMALIASLOOKUP = f"{Path.home()}.fmdata/.fmaliaslookup"
|
|
7
|
+
FMUNDOLOOKUP = f"{Path.home()}.fmdata/.fmundolookup"
|
|
8
|
+
FMPREVIOUSCOMMAND = f"{Path.home()}.fmdata/.fmpreviouscommand"
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import ansi_codes as ac
|
|
2
2
|
import json
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import globals
|
|
4
|
+
import os
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
def check_for_first_run():
|
|
8
|
-
if not FMDATA.exists():
|
|
8
|
+
if not globals.FMDATA.exists():
|
|
9
|
+
os.mkdir(globals.FMDATA)
|
|
10
|
+
|
|
9
11
|
with open(globals.FMALIASLOOKUP, "w") as file:
|
|
10
12
|
json.dump({}, file, indent=4)
|
|
11
13
|
|
ftagger-0.1.2/src/globals.py
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
from pathlib import Path
|
|
2
|
-
|
|
3
|
-
FMDATA = Path.home() / ".fmdata"
|
|
4
|
-
FMDEFAULT = f"{Path.home()}/.fmdata/.fmdefault"
|
|
5
|
-
FMALIASES = f"{Path.home()}/.fmdata/.fmaliases"
|
|
6
|
-
FMALIASLOOKUP = f"{Path.home()}/.fmdata/.fmaliaslookup"
|
|
7
|
-
FMUNDOLOOKUP = f"{Path.home()}/.fmdata/.fmundolookup"
|
|
8
|
-
FMPREVIOUSCOMMAND = f"{Path.home()}/.fmdata/.fmpreviouscommand"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|