feat: ssh as shell command (#67)
* feat(ssh): add action to run shell commands over a remote server Signed-off-by: mudler <mudler@localai.io> * fix(github): correctly get content Signed-off-by: mudler <mudler@localai.io> --------- Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
d54abc3ed0
commit
1b187444fc
@@ -60,9 +60,9 @@ func (g *GithubRepositoryGetContent) Run(ctx context.Context, params action.Acti
|
||||
return action.ActionResult{Result: resultString}, err
|
||||
}
|
||||
|
||||
var content string
|
||||
if fileContent.Content != nil {
|
||||
content = *fileContent.Content
|
||||
content, err := fileContent.GetContent()
|
||||
if err != nil {
|
||||
return action.ActionResult{}, err
|
||||
}
|
||||
|
||||
return action.ActionResult{Result: fmt.Sprintf("File %s\nContent:%s\n", result.Path, content)}, err
|
||||
|
||||
Reference in New Issue
Block a user