Skip to content

Commit

Permalink
Add deleteFile function (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Feb 29, 2024
1 parent baa3f19 commit 451b44f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ the following functions are also available:
Returns `true`. Useful as a default value to accept y\[es\] or n\[o\] answers.
* `false`\
Returns `false`. Useful as a default value to accept y\[es\] or n\[o\] answers.
* `deleteFile`\
Deletes the current file, or a list of file names relative to the repo root.

You can also nest function calls. To default a project name to the GitHub repo name, for example:

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/cli/go-gh v1.2.1
github.com/go-git/go-git/v5 v5.4.2
github.com/heaths/go-console v0.8.0
github.com/heaths/go-template v0.6.0
github.com/heaths/go-template v0.7.0
github.com/spf13/cobra v1.6.1
github.com/stretchr/testify v1.8.1
golang.org/x/text v0.7.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/heaths/go-console v0.8.0 h1:TIA9nOuwJHFeT2MQqoQSOwKiNix/CKcs30tDnKMEzSI=
github.com/heaths/go-console v0.8.0/go.mod h1:gMpuVJakd6h3aqTcRvxvo6JM8mu3fMq0NdF95qLVFMg=
github.com/heaths/go-template v0.6.0 h1:Efu+IGHNwDcEzVHlj0BYxhUC4PHYWg0XZ8lBzLbo7dI=
github.com/heaths/go-template v0.6.0/go.mod h1:JRbKojkmSjVJuzscTqfkpuW4gdeftBFBgf74+btXZOM=
github.com/heaths/go-template v0.7.0 h1:MQOY1iTFRBkvJNJ18T/yop4gH97kH4vGRlX5/sKtgnQ=
github.com/heaths/go-template v0.7.0/go.mod h1:JRbKojkmSjVJuzscTqfkpuW4gdeftBFBgf74+btXZOM=
github.com/henvic/httpretty v0.0.6 h1:JdzGzKZBajBfnvlMALXXMVQWxWMF/ofTy8C3/OSUTxs=
github.com/henvic/httpretty v0.0.6/go.mod h1:X38wLjWXHkXT7r2+uK8LjCMne9rsuNaBLJ+5cU2/Pmo=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
Expand Down

0 comments on commit 451b44f

Please sign in to comment.