Skip to content

Commit

Permalink
fix: release action
Browse files Browse the repository at this point in the history
  • Loading branch information
riza committed Jun 26, 2022
1 parent 57029df commit d12c0da
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
main
linx
.idea
24 changes: 24 additions & 0 deletions cmd/linx/linx.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package main

import (
"github.com/riza/linx/internal/banner"
"github.com/riza/linx/internal/options"
"github.com/riza/linx/linx"
"github.com/riza/linx/pkg/logger"
)

const Version = "v0.0.1"

func main() {
banner.Show(Version)

opts, err := options.Get().Parse()
if err != nil {
logger.Get().Fatal(err)
}

err = linx.Run(opts)
if err != nil {
logger.Get().Error(err)
}
}
15 changes: 15 additions & 0 deletions linx/linx.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package linx

import (
"github.com/riza/linx/internal/options"
"github.com/riza/linx/internal/scanner"
)

func Run(options *options.Options) error {
scanner := scanner.NewScanner(options.Target)
err := scanner.Run()
if err != nil {
return err
}
return nil
}

0 comments on commit d12c0da

Please sign in to comment.