mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-23 13:18:04 -05:00
### CHANGES - Introduce `cmd` directory for all main application binaries. - Move all Go packages into the `internal` directory. - Rename the `restapi` package to `server` for clarity. - Consolidate patterns and strategies into a new `data` directory. - Group all auxiliary scripts into a new `scripts` directory. - Move all documentation and images into a `docs` directory. - Update all Go import paths to reflect the new structure. - Adjust CI/CD workflows and build commands for new layout.
22 lines
428 B
Go
22 lines
428 B
Go
package cli
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/danielmiessler/fabric/internal/core"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCli(t *testing.T) {
|
|
t.Skip("Skipping test for now, collision with flag -t")
|
|
originalArgs := os.Args
|
|
defer func() { os.Args = originalArgs }()
|
|
|
|
os.Args = []string{os.Args[0]}
|
|
err := Cli("test")
|
|
assert.Error(t, err)
|
|
assert.Equal(t, core.NoSessionPatternUserMessages, err.Error())
|
|
}
|