Compare commits
4 Commits
7af423818f
...
1767791716
Author | SHA1 | Date |
---|---|---|
sudo pacman -Syu | 1767791716 | |
sudo pacman -Syu | ccde4310ac | |
sudo pacman -Syu | 4dbdccfa43 | |
sudo pacman -Syu | bf0cd1bffd |
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 Hau Nguyen
|
||||
Copyright (c) 2023 Hau Nguyen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -56,7 +56,4 @@ changeloguru generate -i --auto-commit --auto-tag --auto-push
|
|||
- [stretchr/testify](https://github.com/stretchr/testify)
|
||||
- [urfave/cli](https://github.com/urfave/cli)
|
||||
|
||||
<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" alt="JetBrains Logo (Main) logo." width="64">
|
||||
<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/GoLand_icon.png" alt="GoLand logo." width="64">
|
||||
|
||||
Made with [GoLand](https://www.jetbrains.com/go/). Thanks for supporting open source projects!
|
||||
|
|
|
@ -19,20 +19,21 @@ const (
|
|||
|
||||
type action struct {
|
||||
flags struct {
|
||||
scopes map[string]struct{}
|
||||
output string
|
||||
from string
|
||||
to string
|
||||
version string
|
||||
repository string
|
||||
filename string
|
||||
filetype string
|
||||
verbose bool
|
||||
dryRun bool
|
||||
interactive bool
|
||||
autoGitCommit bool
|
||||
autoGitTag bool
|
||||
autoGitPush bool
|
||||
scopes map[string]struct{}
|
||||
output string
|
||||
from string
|
||||
to string
|
||||
version string
|
||||
repository string
|
||||
filename string
|
||||
filetype string
|
||||
verbose bool
|
||||
dryRun bool
|
||||
interactive bool
|
||||
interactiveFrom bool
|
||||
autoGitCommit bool
|
||||
autoGitTag bool
|
||||
autoGitPush bool
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,7 @@ func (a *action) getFlags(c *cli.Context) {
|
|||
|
||||
a.flags.dryRun = c.Bool(flagDryRunName)
|
||||
a.flags.interactive = c.Bool(flagInteractiveName)
|
||||
a.flags.interactiveFrom = c.Bool(flagInteractiveFromName)
|
||||
a.flags.autoGitCommit = c.Bool(flagAutoGitCommitName)
|
||||
a.flags.autoGitTag = c.Bool(flagAutoGitTagName)
|
||||
a.flags.autoGitPush = c.Bool(flagAutoGitPushName)
|
||||
|
|
|
@ -42,8 +42,10 @@ func (a *action) RunGenerate(c *cli.Context) error {
|
|||
fmt.Printf("Input version (%s):\n", flagVersionUsage)
|
||||
a.flags.version = ioe.ReadInput()
|
||||
|
||||
fmt.Printf("Input from (%s):\n", flagFromUsage)
|
||||
a.flags.from = ioe.ReadInputEmpty()
|
||||
if a.flags.interactiveFrom {
|
||||
fmt.Printf("Input from (%s):\n", flagFromUsage)
|
||||
a.flags.from = ioe.ReadInputEmpty()
|
||||
}
|
||||
|
||||
fmt.Printf("Input to (%s):\n", flagToUsage)
|
||||
a.flags.to = ioe.ReadInputEmpty()
|
||||
|
|
|
@ -48,6 +48,9 @@ const (
|
|||
flagInteractiveName = "interactive"
|
||||
flagInteractiveUsage = "interactive mode"
|
||||
|
||||
flagInteractiveFromName = "interactive-from"
|
||||
flagInteractiveFromUsage = "enable ask from in interactive mode"
|
||||
|
||||
flagAutoGitCommitName = "auto-commit"
|
||||
flagAutoGitCommitUsage = "enable auto git commit after generating changelog"
|
||||
|
||||
|
@ -126,6 +129,10 @@ func NewApp() *App {
|
|||
Usage: flagInteractiveUsage,
|
||||
Aliases: flagInteractiveAliases,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: flagInteractiveFromName,
|
||||
Usage: flagInteractiveFromUsage,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: flagAutoGitCommitName,
|
||||
Usage: flagAutoGitCommitUsage,
|
||||
|
|
Loading…
Reference in New Issue