add a string replace method

This commit is contained in:
Aidan 2020-08-26 22:32:01 -07:00
parent 591402b428
commit 12caeedf68
No known key found for this signature in database
GPG key ID: 327711E983899316
4 changed files with 36 additions and 3 deletions

View file

@ -225,6 +225,11 @@ func LaunchProcess(
* Example (l vim file.txt)
*/
func Call(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
if in == nil {
log.Log(log.ERR, "no arguments given", "call")
return nil
}
if in.Tag == ast.LIST {
log.Log(log.ERR, "couldnt exec, target bin is a list", "call")
return nil