Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
add spinner to --use-template flag, update git_config version, up…
Browse files Browse the repository at this point in the history
…grade to `v5.3.61`
  • Loading branch information
abdfnx committed May 26, 2021
1 parent 6422015 commit b65c331
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
32 changes: 28 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,31 @@
---

## [[v5.3.6] 2021-05-18](#v532-2021-05-18)
## [[v5.3.61] 2021-05-26](#v5361-2021-05-26)

### Added

- Create `-t/--use-template` flag.
- Add `secman auth get-username` command.
- Add user checker [**#42**](https://github.com/secman-team/secman/issues/42).

### Changed

- Change Secman Help Form with
* **USAGE**
* **COMMANDS**
* **FLAGS**
* **EXAMPLES**
* **LEARN MORE**
* **FEEDBACK**
- Change CLI Website from **get.secman.dev** to [**cli.secman.dev**](https://cli.secman.dev).

### Fixed

- Fix [**#43**](https://github.com/secman-team/secman/issues/43)
- Fix [**#42**](https://github.com/secman-team/secman/issues/42)

## [[v5.3.6] 2021-05-18](#v536-2021-05-18)

### Added

Expand All @@ -19,7 +43,7 @@ nothing

- Fix `Upgrade` command

## [[v5.3.5] 2021-05-10](#v532-2021-05-10)
## [[v5.3.5] 2021-05-10](#v535-2021-05-10)

### Added

Expand All @@ -46,7 +70,7 @@ nothing

- Fix version checks in windows [#29](https://github.com/secman-team/secman/issues/29)

## [[v5.3.4] 2021-04-19](#v532-2021-04-19)
## [[v5.3.4] 2021-04-19](#v534-2021-04-19)

### Added

Expand Down Expand Up @@ -79,7 +103,7 @@ nothing

- Fix **error: exit status 1 when type `secman -h`**

## [[v5.3.3] 2021-04-12](#v532-2021-04-12)
## [[v5.3.3] 2021-04-12](#v533-2021-04-12)

### Added

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.11
require (
github.com/AlecAivazis/survey/v2 v2.2.12
github.com/MakeNowJust/heredoc v1.0.0
github.com/abdfnx/git_config v0.0.3
github.com/abdfnx/git_config v0.0.31
github.com/atotto/clipboard v0.1.4
github.com/briandowns/spinner v1.13.0
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
Expand Down
18 changes: 15 additions & 3 deletions pkg/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ package root
import (
"fmt"
"strconv"
"time"

"github.com/MakeNowJust/heredoc"
"github.com/briandowns/spinner"
"github.com/spf13/cobra"

"github.com/secman-team/gh-api/pkg/cmd/factory"
"github.com/secman-team/gh-api/pkg/cmdutil"
"github.com/spf13/cobra"
sync "github.com/secman-team/secman/pkg/api"
"github.com/secman-team/secman/pkg/clean"
"github.com/secman-team/secman/pkg/edit"
Expand All @@ -24,7 +27,7 @@ import (
configx "github.com/secman-team/secman/tools/config"
repox "github.com/secman-team/secman/tools/repo"
checker "github.com/secman-team/version-checker"

"github.com/secman-team/shell"
commands "github.com/secman-team/secman/tools/constants"
)
Expand Down Expand Up @@ -291,7 +294,16 @@ func run(opts *Options) error {
cmdFactory := factory.New()

if opts.UseTemplate {
shell.ShellCmd(commands.Clone_Template())
s := spinner.New(spinner.CharSets[11], 100*time.Millisecond)
s.Suffix = " 📦 Cloning..."
s.Start()

cloneCmd := commands.Clone_Template()

cmd, _, _ := shell.SHCoreOut(cloneCmd, cloneCmd)

s.Stop()
fmt.Print(cmd)
} else {
if exists, _ := pio.PassFileDirExists(); exists {
show.ListAll()
Expand Down

0 comments on commit b65c331

Please sign in to comment.