File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -117,17 +117,17 @@ var stackDescribeCmd = &cobra.Command{
117
117
Short : "describe stack dependencies" ,
118
118
Long : `Describes stack dependencies` ,
119
119
Run : func (cmd * cobra.Command , args []string ) {
120
- files , err := filepath .Glob (args [0 ])
120
+ // Run collection on each of the files
121
+ ctx , _ := filepath .Abs ("." )
122
+
123
+ files , err := filepath .Glob (filepath .Join (ctx , args [0 ]))
121
124
122
125
if err != nil {
123
126
panic (err )
124
127
}
125
128
126
129
fmt .Printf ("found files: %v\n " , files )
127
-
128
- // Run collection on each of the files
129
- ctx , _ := filepath .Abs ("." )
130
-
130
+
131
131
// Create a new stack
132
132
stack := codeconfig .NewStack ()
133
133
@@ -137,7 +137,9 @@ var stackDescribeCmd = &cobra.Command{
137
137
}
138
138
139
139
for _ , f := range files {
140
- if err := codeconfig .Collect (ctx , f , stack ); err != nil {
140
+ rel , _ := filepath .Rel (ctx , f )
141
+
142
+ if err := codeconfig .Collect (ctx , rel , stack ); err != nil {
141
143
fmt .Println (err )
142
144
}
143
145
}
You can’t perform that action at this time.
0 commit comments