| skipped 1 lines |
2 | 2 | | |
3 | 3 | | import ( |
4 | 4 | | "fmt" |
| 5 | + | "github.com/fatih/color" |
5 | 6 | | "github.com/j3ssie/osmedeus/execution" |
6 | 7 | | "github.com/j3ssie/osmedeus/utils" |
7 | 8 | | "github.com/robertkrimen/otto" |
| skipped 100 lines |
108 | 109 | | |
109 | 110 | | // Cat the file to stdout |
110 | 111 | | vm.Set(Cat, func(call otto.FunctionCall) otto.Value { |
111 | | - | utils.Cat(call.Argument(0).String()) |
| 112 | + | filename := call.Argument(0).String() |
| 113 | + | utils.InforF("Showing result of: %v", color.HiCyanString(filename)) |
| 114 | + | utils.Cat(filename) |
112 | 115 | | result, _ := vm.ToValue(true) |
113 | 116 | | return result |
114 | 117 | | }) |
| skipped 312 lines |