File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,7 @@ func (pi *PipelinesInit) Run() error {
186
186
187
187
fmt .Printf (`Your pipeline has been initialized and created at %s.
188
188
189
- To run the pipeline, execute:
190
-
191
- conduit --pipelines.path %s` ,
192
- pi .configFilePath (), pi .configFilePath ())
189
+ To run the pipeline, simply run 'conduit'.` , pi .configFilePath ())
193
190
194
191
return nil
195
192
}
Original file line number Diff line number Diff line change @@ -125,7 +125,12 @@ type Config struct {
125
125
}
126
126
127
127
func DefaultConfig () Config {
128
- return DefaultConfigWithBasePath ("." )
128
+ dir , err := os .Getwd ()
129
+ if err != nil {
130
+ panic (cerrors .Errorf ("failed to get current directory: %w" , err ))
131
+ }
132
+
133
+ return DefaultConfigWithBasePath (dir )
129
134
}
130
135
131
136
func DefaultConfigWithBasePath (basePath string ) Config {
@@ -273,7 +278,7 @@ func (c Config) Validate() error {
273
278
}
274
279
// check if folder exists
275
280
_ , err = os .Stat (c .Pipelines .Path )
276
- if c .Pipelines .Path != "pipelines" && os .IsNotExist (err ) {
281
+ if c .Pipelines .Path != DefaultConfig (). Pipelines . Path && os .IsNotExist (err ) {
277
282
return invalidConfigFieldErr ("pipelines.path" )
278
283
}
279
284
You can’t perform that action at this time.
0 commit comments