Skip to content

Commit

Permalink
Deprecate text
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorg committed Feb 8, 2018
1 parent 28e2f12 commit e9f8474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtins/core/io/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func init() {
proc.GoFunctions["text"] = cmdText
//proc.GoFunctions["text"] = cmdText
proc.GoFunctions["pt"] = cmdPipeTelemetry
proc.GoFunctions[">"] = cmdWriteFile
proc.GoFunctions[">>"] = cmdAppendFile
Expand All @@ -24,7 +24,7 @@ func init() {

var rxExt *regexp.Regexp = regexp.MustCompile(`(?i)\.([a-z]+)(\.gz|)$`)

func cmdText(p *proc.Process) error {
/*func cmdText(p *proc.Process) error {
filename, err := p.Parameters.String(0)
if err != nil {
return err
Expand Down Expand Up @@ -72,7 +72,7 @@ func cmdText(p *proc.Process) error {
}
return nil
}
}*/

func cmdPipeTelemetry(p *proc.Process) error {
dt := p.Stdin.GetDataType()
Expand Down

0 comments on commit e9f8474

Please sign in to comment.