mirror of
https://github.com/spf13/cobra
synced 2025-04-10 16:57:19 +00:00
feat(i18n): test the locales using the appropriate build flag
This commit is contained in:
parent
4a45b27a39
commit
d995d9fd4e
2 changed files with 5 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -21,7 +21,8 @@ lint:
|
||||||
|
|
||||||
test: install_deps
|
test: install_deps
|
||||||
$(info ******************** running tests ********************)
|
$(info ******************** running tests ********************)
|
||||||
LANGUAGE="en" go test -v ./...
|
go test -v ./...
|
||||||
|
LANGUAGE="en" go test -tags locales -v ./...
|
||||||
|
|
||||||
richtest: install_deps
|
richtest: install_deps
|
||||||
$(info ******************** running tests with kyoh86/richgo ********************)
|
$(info ******************** running tests with kyoh86/richgo ********************)
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build locales
|
||||||
|
// +build locales
|
||||||
|
|
||||||
package cobra
|
package cobra
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Add table
Reference in a new issue