Merge pull request #2 from BraydonKains/UseInit

Using files from crystal init and reformatting everything to new edit…
pull/3/head
Braydon Kains 5 years ago committed by GitHub
commit 94a8fe6d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,9 @@
root = true
[*.cr]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

9
.gitignore vendored

@ -1,2 +1,9 @@
# vim files
*.swp *.swp
eznet
# stuff from crystal init
/docs/
/lib/
/bin/
/.shards/
*.dwarf

@ -0,0 +1,5 @@
language: crystal
script:
- crystal spec
- crystal tool format --check

@ -15,6 +15,7 @@ Get the name and process ID of the process running on a given port
## TODO ## TODO
* Add the ability to kill process on port * Add the ability to kill process on port
* Maybe look into other cli operations? (getting IP?)
* Come up with other useful stuff * Come up with other useful stuff
* Write up contributors guide * Write up contributors guide
* Decide how to do documentation (probably Github wiki?) * Decide how to do documentation (probably Github wiki?)

@ -23,7 +23,7 @@ class LtnpRecord
def to_s def to_s
puts "%s, " * 8 % [ puts "%s, " * 8 % [
@proto, @state, @address, @port, @proto, @state, @address, @port,
@f_address, @f_port, @pid, @p_name @f_address, @f_port, @pid, @p_name,
] ]
end end
@ -49,5 +49,4 @@ class LtnpRecord
end end
{pid, p_name} {pid, p_name}
end end
end end

@ -1,5 +1,5 @@
module NetstatRunner module NetstatRunner
def self.run_ltnp() : LtnpOperator def self.run_ltnp : LtnpOperator
io = IO::Memory.new io = IO::Memory.new
Process.run("sudo netstat -ltnp", shell: true, output: io) Process.run("sudo netstat -ltnp", shell: true, output: io)
LtnpOperator.new io.to_s LtnpOperator.new io.to_s

@ -0,0 +1,13 @@
name: eznet-cli
version: 0.0.1
authors:
- BraydonKains <kainsbraydon@gmail.com>
targets:
eznet-cli:
eznet: ./main.cr
crystal: 0.33.0
license: MIT
Loading…
Cancel
Save