aboutsummaryrefslogtreecommitdiff
path: root/TODOs.md
blob: fd1373cfed3836cc616a92a12e873b9c58cff086 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Tasks

## DOING Write README, description and long-description {#task-9bc160b8-5739-133d-1d46-61ba68ebd39e}
- DOING in 2021-06-12

  The `description` was already good enough.

  The `long-description` has better content over the previous duplication of whatever was in `description`.
	Done in
  [`9e089d29ec64936df39b9b1a0e385f988d843416`](https://git.euandreh.xyz/git-permalink/commit/?id=9e089d29ec64936df39b9b1a0e385f988d843416).

  The `README.md` is less empty, but still missing a "Usage" section.
  Done in
  [`a9022eb2f72efd9b99212a057df33cba762cd13b`](https://git.euandreh.xyz/git-permalink/commit/?id=a9022eb2f72efd9b99212a057df33cba762cd13b).
- TODO in 2021-06-12

## DONE Write tests {#task-fd654661-fa97-83db-1d49-83a66866ccfa}
- DONE in 2021-06-12

  I didn't find a simple way to test without getting too much into the weeds with mocking Git, and I don't think it is worth it.

  The tests I created are actually just exercising the help and versions flags, and asserting that other flags are ignored.
  For effectiveness this is pretty shallow and pretty useless, but I'm fine with the state of not testing the core functionality.

	To do that it would require me to split `src/git-permalink.sh` into two files, one with the function definitions and the other as a runner.
  But then I would have to glue them together on the `install` target, and more similar complications.

  Given all that, I chose not to write more tests, and call this done.

  Done in
  [`50a7c011274359ef058d30be87b9d29ca4fd06ed`](https://git.euandreh.xyz/git-permalink/commit/?id=50a7c011274359ef058d30be87b9d29ca4fd06ed).
- TODO in 2021-06-12

## TODO Write manpage {#task-6e6f917f-26ad-09fd-9a09-84b5df0f3ea4}
- TODO in 2021-06-12

## DONE Support default flags {#task-a66edd2e-cec4-ef7d-5a8a-3c9013381719}
- DONE in 2021-06-12

  Done in
  [`9aded035e3a6ab3fbac3129353db587b22132c79`](https://git.euandreh.xyz/git-permalink/commit/?id=9aded035e3a6ab3fbac3129353db587b22132c79).
- TODO in 2021-06-12

---

Those are:
- `-h`
- `--help`
- `-V`
- `--version`

## TODO Support more forges {#task-cebc5298-17ad-5c60-dfa5-a25b66433a3a}
- TODO in 2021-06-12

---

The ones done so far as of this writing:

- <input type="checkbox" disabled checked/> git.euandreh.xyz
- <input type="checkbox" disabled checked/> sourcehut
- <input type="checkbox" disabled checked/> savannah
- <input type="checkbox" disabled checked/> gitlab
- <input type="checkbox" disabled checked/> github

The one I can think of right now but almost never use to merit being
part of the first version:

- <input type="checkbox" disabled /> codeberg
- <input type="checkbox" disabled /> notabug
- <input type="checkbox" disabled /> pagure
- <input type="checkbox" disabled /> bitbucket
- <input type="checkbox" disabled /> generic cgit?

# Bugs

# Improvements

# Questions

# Resources

# Scratch