summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-15 22:52:11 -0600
committerJeff Carr <[email protected]>2024-02-15 22:52:11 -0600
commitc9df5a7aceaecd7d2f022a6ebccc7b8a9909059b (patch)
tree8fd54055f0f44744dc53f346e42ecd46d7b45a14 /structs.go
parent98730aed8ae78d41ee45f923b5110e1912f0a2fb (diff)
start deprecating and modernizing this codev0.20.8
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/structs.go b/structs.go
index c250fcf..bf31186 100644
--- a/structs.go
+++ b/structs.go
@@ -27,7 +27,8 @@ type File struct {
Fnbreader *nbreader.NBReader // := nbreader.NewNBReader(readOUT, 1024)
}
-type Shell struct {
+// early code playground
+type OldShell struct {
Cmdline string
Process *exec.Cmd
Done bool
@@ -45,9 +46,9 @@ type Shell struct {
Stderr *File
}
-// default values for Shell
-func New() *Shell {
- var tmp Shell
+// default values for OldShell
+func New() *OldShell {
+ var tmp OldShell
tmp.Done = false
tmp.Fail = false