gitghost 1.0.2__tar.gz → 1.0.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.
@@ -1,9 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitghost
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Private version control for your Git ignored files.
5
5
  Author: Decoding Chris
6
6
  License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/decodingchris/GitGhost
8
+ Project-URL: Issues, https://github.com/decodingchris/gitghost/issues
7
9
  Classifier: Programming Language :: Python :: 3
8
10
  Classifier: Programming Language :: Python :: 3.10
9
11
  Classifier: Programming Language :: Python :: 3.11
@@ -21,8 +23,6 @@ Requires-Dist: gitpython<4.0,>=3.1
21
23
 
22
24
  Private version control for your Git ignored files.
23
25
 
24
- ---
25
-
26
26
  ## Why use GitGhost?
27
27
 
28
28
  - **Keep sensitive files private:** Manage secrets, configs, or personal files outside your public repo.
@@ -31,16 +31,12 @@ Private version control for your Git ignored files.
31
31
  - **Separate private repo:** Keeps your private data secure and versioned.
32
32
  - **Cross-platform:** Designed for Linux, works on any system with Python 3.10+.
33
33
 
34
- ---
35
-
36
34
  ## Requirements
37
35
 
38
36
  - Python 3.10 or higher
39
37
  - Git installed
40
38
  - GitHub CLI (`gh`) is required for private repo automation
41
39
 
42
- ---
43
-
44
40
  ## Installation
45
41
 
46
42
  Install GitGhost directly from PyPI:
@@ -49,9 +45,7 @@ Install GitGhost directly from PyPI:
49
45
  pip install gitghost
50
46
  ```
51
47
 
52
- ---
53
-
54
- ## Quick Start
48
+ ## Commands
55
49
 
56
50
  Initialize GitGhost in your project:
57
51
 
@@ -77,7 +71,11 @@ Discard private changes:
77
71
  gitghost discard
78
72
  ```
79
73
 
80
- ---
74
+ Get help and list all commands:
75
+
76
+ ```bash
77
+ gitghost help
78
+ ```
81
79
 
82
80
  ## How it works
83
81
 
@@ -87,16 +85,6 @@ gitghost discard
87
85
  - `gitghost status` shows private file changes.
88
86
  - Keeps private data out of your public repo, but safely versioned.
89
87
 
90
- ---
91
-
92
- ## Links
93
-
94
- - **PyPI:** [https://pypi.org/project/gitghost/](https://pypi.org/project/gitghost/)
95
- - **Source Code:** [https://github.com/decodingchris/gitghost](https://github.com/decodingchris/gitghost)
96
- - **Issue Tracker:** [https://github.com/decodingchris/gitghost/issues](https://github.com/decodingchris/gitghost/issues)
97
-
98
- ---
99
-
100
88
  ## License
101
89
 
102
90
  This project is licensed under the **MIT License**. See the [LICENSE](https://opensource.org/licenses/MIT) file for details.
@@ -2,8 +2,6 @@
2
2
 
3
3
  Private version control for your Git ignored files.
4
4
 
5
- ---
6
-
7
5
  ## Why use GitGhost?
8
6
 
9
7
  - **Keep sensitive files private:** Manage secrets, configs, or personal files outside your public repo.
@@ -12,16 +10,12 @@ Private version control for your Git ignored files.
12
10
  - **Separate private repo:** Keeps your private data secure and versioned.
13
11
  - **Cross-platform:** Designed for Linux, works on any system with Python 3.10+.
14
12
 
15
- ---
16
-
17
13
  ## Requirements
18
14
 
19
15
  - Python 3.10 or higher
20
16
  - Git installed
21
17
  - GitHub CLI (`gh`) is required for private repo automation
22
18
 
23
- ---
24
-
25
19
  ## Installation
26
20
 
27
21
  Install GitGhost directly from PyPI:
@@ -30,9 +24,7 @@ Install GitGhost directly from PyPI:
30
24
  pip install gitghost
31
25
  ```
32
26
 
33
- ---
34
-
35
- ## Quick Start
27
+ ## Commands
36
28
 
37
29
  Initialize GitGhost in your project:
38
30
 
@@ -58,7 +50,11 @@ Discard private changes:
58
50
  gitghost discard
59
51
  ```
60
52
 
61
- ---
53
+ Get help and list all commands:
54
+
55
+ ```bash
56
+ gitghost help
57
+ ```
62
58
 
63
59
  ## How it works
64
60
 
@@ -68,16 +64,6 @@ gitghost discard
68
64
  - `gitghost status` shows private file changes.
69
65
  - Keeps private data out of your public repo, but safely versioned.
70
66
 
71
- ---
72
-
73
- ## Links
74
-
75
- - **PyPI:** [https://pypi.org/project/gitghost/](https://pypi.org/project/gitghost/)
76
- - **Source Code:** [https://github.com/decodingchris/gitghost](https://github.com/decodingchris/gitghost)
77
- - **Issue Tracker:** [https://github.com/decodingchris/gitghost/issues](https://github.com/decodingchris/gitghost/issues)
78
-
79
- ---
80
-
81
67
  ## License
82
68
 
83
69
  This project is licensed under the **MIT License**. See the [LICENSE](https://opensource.org/licenses/MIT) file for details.
@@ -301,6 +301,12 @@ def init():
301
301
  with open(gitignore_path, "w") as f:
302
302
  f.write(vault_block)
303
303
  click.echo("Created .gitignore with GitGhost block")
304
+ @cli.command()
305
+ @click.pass_context
306
+ def help(ctx):
307
+ """Show this message and exit."""
308
+ click.echo(cli.get_help(ctx))
309
+
304
310
 
305
311
  if __name__ == "__main__":
306
312
  cli()
@@ -1,9 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitghost
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Private version control for your Git ignored files.
5
5
  Author: Decoding Chris
6
6
  License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/decodingchris/GitGhost
8
+ Project-URL: Issues, https://github.com/decodingchris/gitghost/issues
7
9
  Classifier: Programming Language :: Python :: 3
8
10
  Classifier: Programming Language :: Python :: 3.10
9
11
  Classifier: Programming Language :: Python :: 3.11
@@ -21,8 +23,6 @@ Requires-Dist: gitpython<4.0,>=3.1
21
23
 
22
24
  Private version control for your Git ignored files.
23
25
 
24
- ---
25
-
26
26
  ## Why use GitGhost?
27
27
 
28
28
  - **Keep sensitive files private:** Manage secrets, configs, or personal files outside your public repo.
@@ -31,16 +31,12 @@ Private version control for your Git ignored files.
31
31
  - **Separate private repo:** Keeps your private data secure and versioned.
32
32
  - **Cross-platform:** Designed for Linux, works on any system with Python 3.10+.
33
33
 
34
- ---
35
-
36
34
  ## Requirements
37
35
 
38
36
  - Python 3.10 or higher
39
37
  - Git installed
40
38
  - GitHub CLI (`gh`) is required for private repo automation
41
39
 
42
- ---
43
-
44
40
  ## Installation
45
41
 
46
42
  Install GitGhost directly from PyPI:
@@ -49,9 +45,7 @@ Install GitGhost directly from PyPI:
49
45
  pip install gitghost
50
46
  ```
51
47
 
52
- ---
53
-
54
- ## Quick Start
48
+ ## Commands
55
49
 
56
50
  Initialize GitGhost in your project:
57
51
 
@@ -77,7 +71,11 @@ Discard private changes:
77
71
  gitghost discard
78
72
  ```
79
73
 
80
- ---
74
+ Get help and list all commands:
75
+
76
+ ```bash
77
+ gitghost help
78
+ ```
81
79
 
82
80
  ## How it works
83
81
 
@@ -87,16 +85,6 @@ gitghost discard
87
85
  - `gitghost status` shows private file changes.
88
86
  - Keeps private data out of your public repo, but safely versioned.
89
87
 
90
- ---
91
-
92
- ## Links
93
-
94
- - **PyPI:** [https://pypi.org/project/gitghost/](https://pypi.org/project/gitghost/)
95
- - **Source Code:** [https://github.com/decodingchris/gitghost](https://github.com/decodingchris/gitghost)
96
- - **Issue Tracker:** [https://github.com/decodingchris/gitghost/issues](https://github.com/decodingchris/gitghost/issues)
97
-
98
- ---
99
-
100
88
  ## License
101
89
 
102
90
  This project is licensed under the **MIT License**. See the [LICENSE](https://opensource.org/licenses/MIT) file for details.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gitghost"
7
- version = "1.0.2"
7
+ version = "1.0.4"
8
8
  description = "Private version control for your Git ignored files."
9
9
  authors = [
10
10
  { name = "Decoding Chris" }
@@ -28,4 +28,8 @@ classifiers = [
28
28
  ]
29
29
 
30
30
  [project.scripts]
31
- gitghost = "gitghost.cli:cli"
31
+ gitghost = "gitghost.cli:cli"
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/decodingchris/GitGhost"
35
+ Issues = "https://github.com/decodingchris/gitghost/issues"
@@ -281,4 +281,10 @@ def test_cli_entry_point():
281
281
  # Cover line 300
282
282
  from gitghost import cli as cli_module
283
283
  with pytest.raises(SystemExit):
284
- cli_module.cli()
284
+ cli_module.cli()
285
+
286
+ def test_help_command(runner):
287
+ result = runner.invoke(cli, ['help'])
288
+ assert result.exit_code == 0
289
+ assert 'Usage:' in result.output
290
+ assert 'Commands:' in result.output
File without changes
File without changes
File without changes