Add mkdir docs

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Vasek - Tom C
2021-12-17 22:17:06 +01:00
parent d2580f4a73
commit e11cb1b6fd
9 changed files with 36 additions and 41 deletions

View File

@@ -69,12 +69,12 @@ func (t *mkdirTask) Run(ctx context.Context, pctx *plancontext.Context, s solver
}
// Retrieve result result filesystem
outputFs := pctx.FS.New(result)
outputFS := pctx.FS.New(result)
// Init output
output := compiler.NewValue()
if err := output.FillPath(cue.ParsePath("output"), outputFs.MarshalCUE()); err != nil {
if err := output.FillPath(cue.ParsePath("output"), outputFS.MarshalCUE()); err != nil {
return nil, err
}
return output, nil