Skip to content

Commit 1b29326

Browse files
committed
🧑‍💻 Add executable mode for convenient
1 parent 81dde08 commit 1b29326

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.gitlint

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env -S gitlint -C
12
[ignore-by-title]
23
regex=.*
34
ignore=body-is-missing

.yamllint.yml

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env -S yamllint -c
12
---
23
extends: default
34

CITATION.cff

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
#!/usr/bin/env -S scripts/generate-CITATION.cff.pl pyproject.toml
12
---
23
cff-version: 1.2.0
34
message: If you use this software, please cite it as below.
45
authors:
56
- family-names: Wu
67
given-names: Zhenyu
78
orcid: https://orcid.org/0000-0001-6478-9993
8-
title: >-
9-
sphinxcontrib-eval: Evaluate shell command or python code in sphinx and myst
9+
title: "%HERE%"
1010
date-released: 2022-12-10
1111
url: https://github.com/Freed-Wu/sphinxcontrib-eval

scripts/generate-CITATION.cff.pl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env -S perl -pi
2+
unless ($#ARGV < 0) {
3+
$name = $1 if /^name = "([^"]*+)"/;
4+
$description = $1 if /^description = "([^"]*+)"/;
5+
$url = $1 if /^Source = "([^"]*+)"/;
6+
next;
7+
};
8+
s/(?<=^title: ")([^"]*+)(?="$)/$name: $description/;
9+
s/(?<=^url: ")([^"]*+)(?="$)/$url/;

0 commit comments

Comments
 (0)