Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to run resource script on startup #115

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
merged terminal.go conflict
  • Loading branch information
TheTechromancer committed Nov 23, 2018
commit 0e9cdd85ac54f244a8c288cf37a1de0343a6bf58
4 changes: 3 additions & 1 deletion core/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (t *Terminal) ProcessResourceFile(rc string) {

func (t *Terminal) ProcessCommand(line string) bool {

line = strings.TrimSpace(line)
line = strings.TrimSpace(line)

args, err := parser.Parse(line)
if err != nil {
Expand Down Expand Up @@ -164,6 +164,8 @@ func (t *Terminal) DoWork() {
t.cfg.refreshActiveHostnames()
t.updateCertificates("")

t.output("%s", t.sprintPhishletStatus(""))

for !do_quit {
line, err := t.rl.Readline()
if err == readline.ErrInterrupt {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.