Skip to content

Commit 95cb795

Browse files
committed
rename to 'source'
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
1 parent 90212af commit 95cb795

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/lambroll/config/application.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ type LambrollDeploymentInput struct {
2626
// FunctionFile is the path to the lambroll function file. This will be used as `lambroll deploy --function <functionFile>`
2727
FunctionFile string `json:"functionFile"`
2828

29-
// SourceDir is the path to the lambroll source directory. This will be used as `lambroll deploy --src <sourceDir>`
30-
SourceDir string `json:"sourceDir"`
29+
// Source is the path to the lambroll source directory. This will be used as `lambroll deploy --src <source>`
30+
Source string `json:"source"`
3131
}
3232

3333
func (i *LambrollDeploymentInput) validate() error {
3434
if i.FunctionFile == "" {
3535
return errors.New("functionFile is required")
3636
}
37-
if i.SourceDir == "" {
37+
if i.Source == "" {
3838
return errors.New("sourceDir is required")
3939
}
4040
return nil

plugins/lambroll/deployment/execute_stage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (e *deployExecutor) initLambrollCommand(ctx context.Context) (cmd *cli.Lamb
2626
e.lambrollPath,
2727
e.appDir,
2828
e.input.FunctionFile,
29-
e.input.SourceDir,
29+
e.input.Source,
3030
)
3131

3232
if ok := showUsingVersion(ctx, cmd, e.slp); !ok {

0 commit comments

Comments
 (0)