FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
function-claude/init.sh at main · upbound/function-claude · GitHub
upbound
/
function-claude
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
7
Code
Issues
1
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
function-claude
/
init.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
21 lines (16 loc) · 589 Bytes
Breadcrumbs
function-claude
/
init.sh
Copy path
File metadata and controls
executable file
·
21 lines (16 loc) · 589 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!
/bin/sh
#
This script helps initialize a new function project by
#
replacing all instances of function-template-go with the
#
name of your function. The scripts accepts two arguments:
#
1. The name of your function
#
2. The path to your function directory
set
-e
cd
"
$2
"
||
return
#
Replace function-template-go with the name of your function
#
in go.mod
perl -pi -e s,function-template-go,
"
$1
"
,g go.mod
#
in fn.go
perl -pi -e s,function-template-go,
"
$1
"
,g fn.go
#
in examples
perl -pi -e s,function-template-go,
"
$1
"
,g example/
*
echo
"
Function
$1
has been initialised successfully
"
Back
|
FazBrowse Home
|
New Git URL