Skip to content

Commit 16e20ea

Browse files
committed
released 0.0.2
1 parent 39a4864 commit 16e20ea

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ gists-gone -l Unknown
7474

7575
#### Visbility
7676

77-
Using the `-visibility` option you can specify whether you want to delete public or private (secret) gists:
77+
Using the `-visibility` option you can specify whether you want to delete public or secret gists:
7878

7979
```
80-
gists-gone -v private
80+
gists-gone -v secret
8181
gists-gone -v public
8282
```
8383

@@ -99,10 +99,10 @@ Dates should be passed in YYYY-MM-DD format.
9999

100100
#### Examples
101101

102-
Deleting private (secret) gists created from 2020-01-01 onwards:
102+
Deleting secret gists created from 2020-01-01 onwards:
103103

104104
```
105-
gists-gone -v private -dr 2020-01-01 2100-01-01
105+
gists-gone -v secret -dr 2020-01-01 2100-01-01
106106
```
107107

108108
Deleting Rust gists created on a particular date:

gists_gone/gists_gone.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def get_parser_args():
4040
"-v",
4141
"--visibility",
4242
type=str,
43-
help="Specify whether you want to delete public or private gists.",
43+
help="Specify whether you want to delete public or secret gists.",
4444
required=False,
45-
choices=["public", "private"],
45+
choices=["public", "secret"],
4646
)
4747

4848
parser.add_argument(
@@ -147,7 +147,7 @@ def create_gists(json):
147147
if visibility:
148148
visibility = "public"
149149
else:
150-
visibility = "private"
150+
visibility = "secret"
151151

152152
gist = Gist(raw_gist.get("id"), visibility, languages, date_created)
153153
gists.append(gist)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "gists-gone"
8-
version = "0.0.1"
8+
version = "0.0.2"
99
description = "A CLI that gives you more granular control over bulk deletion of your Github gists."
1010
readme = "README.md"
1111
requires-python = ">=3.8"

tests/test_gists_gone.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_create_gists_works(cli_args, requests_mock, mock_gists):
177177
assert isinstance(gists, list)
178178
assert gists[0] == Gist(
179179
"7fea2e3837f324e5e3699917f687c862",
180-
"private",
180+
"secret",
181181
"Clojure",
182182
datetime(2024, 7, 12).date(),
183183
)
@@ -199,7 +199,7 @@ def test_filter_gists_returns_list(created_gists):
199199
def test_filter_gists_works_with_visibility(created_gists):
200200
"""Test that filter_gists() works when the visibility argument is passed."""
201201

202-
arguments = ["private", None, None]
202+
arguments = ["secret", None, None]
203203
gist_ids = filter_gists(arguments, created_gists)
204204
assert "7fea2e3837f324e5e3699917f687c862" in gist_ids
205205
assert "5f6258f9caae6f2c6511e926f7f623af" in gist_ids
@@ -267,7 +267,7 @@ def test_filter_works_with_dates(created_gists):
267267
def test_filter_works_with_multiple_arguments(created_gists):
268268
"""Test that filter_gists works when different arguments are passed."""
269269

270-
arguments = ["private", ["Python"], None]
270+
arguments = ["secret", ["Python"], None]
271271
gist_ids = filter_gists(arguments, created_gists)
272272
assert len(gist_ids) == 0
273273

@@ -282,7 +282,7 @@ def test_filter_works_with_multiple_arguments(created_gists):
282282
assert "8eaee095f4b3a822127cc4fa368b4165" in gist_ids
283283
assert len(gist_ids) == 2
284284

285-
arguments = ["private", None, ["2024-07-12"]]
285+
arguments = ["secret", None, ["2024-07-12"]]
286286
arguments[2] = parse_date_arguments(arguments[2])
287287
gist_ids = filter_gists(arguments, created_gists)
288288
assert len(gist_ids) == 2
@@ -292,7 +292,7 @@ def test_filter_works_with_multiple_arguments(created_gists):
292292
gist_ids = filter_gists(arguments, created_gists)
293293
assert len(gist_ids) == 0
294294

295-
arguments = ["private", ["Rust", "Clojure"], ["2024-07-12"]]
295+
arguments = ["secret", ["Rust", "Clojure"], ["2024-07-12"]]
296296
arguments[2] = parse_date_arguments(arguments[2])
297297
gist_ids = filter_gists(arguments, created_gists)
298298
assert len(gist_ids) == 2

0 commit comments

Comments
 (0)