Commit Graph

52 Commits

Author SHA1 Message Date
Bernd Ahlers
6e44b035b5 Add "changelog release:path" command
This command can be used when you want to release a changelog for a
repository that is not part of a graylog-project setup.
2022-11-30 17:45:19 +01:00
Bernd Ahlers
4090eba32d Rotate changelog in the release process 2022-11-29 15:35:01 +01:00
Bernd Ahlers
07aa9ed97f Add Windows support 2022-11-29 12:39:04 +01:00
Bernd Ahlers
c3c7218398 Add lint command to check snippets for syntax and content errors 2022-11-29 12:28:20 +01:00
Bernd Ahlers
74a8655142 Support rendering multiple snippets directories into one changelog 2022-11-24 16:47:16 +01:00
Bernd Ahlers
971c2233bc Polish the changelog commands
- Fix default gemplate spacing
- Provide feedback about written files
- Make message validator in interactive mode less strict
- Better usage information in command line help
2022-10-21 14:05:55 +02:00
Bernd Ahlers
ae581ada0e Remove manifest generate question that we always answer with Yes
Fixes #30
2022-08-31 13:54:07 +02:00
Bernd Ahlers
d580127551 Add changelog management commands (#31)
* Update cobra and viper to their latest versions
* Start a changelog command
* Start changelog release command
* Add Document360 specific HTML formatter
* Add "new" command to create a new changelog entry
* Hide unfinished changelog release command for now
* Use Go version 1.19
* Update golang.org/x/sys to fix build error
* Clean workspace after each build
* Disable CGO for tests
* Remove wrong git checkout
* Update dependencies
2022-08-31 13:37:09 +02:00
Bernd Ahlers
b7971db06a Improve verbose status output
Allow multiple "-v" flags to increase the verbosity.
2022-07-06 11:58:45 +02:00
Bernd Ahlers
85fff0cd39 Don't set runner env variables for default ports
This allows the usage of these env variables in a .env file for
docker-compose.
2022-06-28 19:37:11 +02:00
Bernd Ahlers
8f63511bae Change commit ID position in status output
This puts the branch first as it was before the introduction of the
commit ID. This makes it easier in interactive use to see the branch.
2021-11-30 18:39:36 +01:00
Marco Pfatschbacher
aac1e8d22a Print commit IDs with the status command (#29)
That makes it easier to identify if a build contained a certain change or not.

Co-authored-by: Bernd Ahlers <bernd@graylog.com>
2021-11-16 14:55:35 +01:00
supahgreg
f60fc05979 Use the actual executable name in usage output.
The executable might be named differently than 'graylog-project-cli' (e.g. https://github.com/Graylog2/graylog-project shows renaming to 'graylog-project').
2021-11-06 09:53:53 -05:00
Bernd Ahlers
b4118fbeb2 Add "--skip-tests" flag to apply-manifest command
This will use the `-DskipTests` property to run the maven build command.
2021-11-05 11:32:29 +01:00
Bernd Ahlers
b733609bcc Don't set parent for server module in maven-parent command 2021-01-28 10:39:46 +01:00
Bernd Ahlers
c77cbd2239 Use projectstate.Sync where applicable 2020-11-19 23:10:21 +01:00
Bernd Ahlers
73263208c3 Add --pull-requests flag to checkout command
This uses GitHub's way of checking out a pull-request locally.

See: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally
2020-06-05 19:02:37 +02:00
Bernd Ahlers
36f2fa9daf Add dev:exec command to execute "docker-compose exec" 2020-06-04 16:07:46 +02:00
Bernd Ahlers
78babf0acc Also update the graylog-project repository itself 2020-06-04 16:07:46 +02:00
Bernd Ahlers
e1d3f629f2 Add --debug flag to run command 2020-06-04 16:07:46 +02:00
Bernd Ahlers
82c2eb6640 Update examples 2020-06-04 16:07:46 +02:00
Bernd Ahlers
3be7659bed Add more build and run options as well as cleanup command 2020-06-04 16:07:46 +02:00
Bernd Ahlers
87887880f0 Add dev:web command and fix viper issue 2020-06-04 16:07:46 +02:00
Bernd Ahlers
7d55e41c85 Remove unused code and dependencies 2020-06-04 16:07:46 +02:00
Bernd Ahlers
08a1aa2632 Run scripts instead of docker-compose directly 2020-06-04 16:07:43 +02:00
Bernd Ahlers
9f8bbb7245 Start run command 2020-06-04 16:07:11 +02:00
Bernd Ahlers
9c479db8cf Initial version of the maven-run command 2020-06-04 16:07:11 +02:00
Bernd Ahlers
9ba312d747 Add example for --manifest option 2020-06-03 18:08:53 +02:00
Bernd Ahlers
af066cd15c Add --manifest and --dry-run flags to github branch-protection cmd 2020-06-03 18:06:40 +02:00
Bernd Ahlers
8f09e87d54 Add non-interactive mode to the apply-manifest-generate command
This can be used to automate the process.
2020-05-29 20:25:48 +02:00
Bernd Ahlers
98cda1b1ec Add relaxed flag to update command 2020-05-29 17:51:57 +02:00
Bernd Ahlers
e3d65993be Add update command to update all repositories 2020-05-29 17:10:07 +02:00
Bernd Ahlers
23c6bfc7e0 Override repository-root for all commands in CI environments (#19)
Previously we only did it for the checkout command.
2020-05-05 09:57:14 +02:00
Bernd Ahlers
8864980ab3 Use server/module revision as default branch for manifest creation 2019-11-06 12:14:50 +01:00
Bernd Ahlers
291d91ab93 Add idea setup command 2019-07-16 12:23:09 +02:00
Bernd Ahlers
5fe6441606 Add skip-maven-deploy flag to apply-manifest command 2019-01-18 00:35:45 +01:00
Bernd Ahlers
a3c3b27c3a Use the correct version for the package.json commit message 2018-03-13 19:27:55 +01:00
Bernd Ahlers
ff888f5855 Also set package.json version in graylog-version cmd 2018-03-13 18:08:55 +01:00
Bernd Ahlers
97dab6aa97 Update package.json files during release and add npm-version command
Closes #2
2018-03-13 14:20:38 +01:00
Bernd Ahlers
a5071ca360 Don't explicitly execute assembly:single goal anymore during apply
All repositories in graylog-project are now executing the
assembly:single goal during the package maven phase so we don't have to
execute it explicitly anymore.

Refs: Graylog2/graylog2-server#4644
Refs: Graylog2/graylog-project#12
2018-03-09 14:47:00 +01:00
Bernd Ahlers
1350f49e95 Introduce "assemblies" and deprecate "assembly" in manifests (#11)
The "assembly" boolean field was used to decide if a module should be
included in the open-source assembly descriptor. The enterprise assembly
descriptor included a hard coded list of plugins and wasn't generated like
the open-source descriptor.

We need to be able to generate the enterprise assembly descriptor as well
because we now have different artifacts in 2.4 and 3.0, for example.

To do this, we introduced the "assemblies" field which contains a list of
assembly descriptor IDs. The open-souce and enterprise assembly descriptor
templates now get a list of modules for a given assembly ID.

    // graylog-assembly.xml
    {{ range $assembly := index .Assemblies "graylog" }}
      // ...
    {{ end }}

    // graylog-enterprise-assembly.xml
    {{ range $assembly := index .Assemblies "graylog-enterprise" }}
      // ...
    {{ end }}

This makes it possible to configure one or more assemblies for each
module in the manifest. It also allows us to include each module in more
than one assembly.

The CLI tool will emit a warning for manifests which still use the old
"assembly" field.
2018-03-08 12:25:32 +01:00
Bernd Ahlers
dbca01ccf2 Add -w/--web flag to the exec command to run commands only in web modules 2018-01-19 15:08:56 +01:00
Bernd Ahlers
7323d14cd1 Add github subcommand for branch protection management 2017-12-22 19:12:11 +01:00
Bernd Ahlers
df87970cb1 Add support for yarn commands 2017-11-22 12:08:20 +01:00
Bernd Ahlers
5afd8995f4 Add graylog-version command bump the Graylog version 2017-07-18 09:38:10 +02:00
Bernd Ahlers
efb3ba437a Add optional assembly descriptor to manifests 2017-07-12 10:16:47 +02:00
Bernd Ahlers
d4cee55d72 Fix bootstrap when using github:// URL 2017-06-12 14:32:09 +02:00
Bernd Ahlers
d5da855b34 Fix SSH/HTTPS repo URL handling
Use the transport of the given graylog-project URL to decide how to
clone all other repositories.

Also remove obsolete --use-ssh and --use-https flags from bootstrap command.

Fixes #4
2017-05-04 11:10:58 +02:00
Bernd Ahlers
9e6369006a Add a module-override option to the checkout command
This can be used to override the revision for a module in the given
manifest.
2017-04-29 17:34:49 +02:00
Bernd Ahlers
473d7c9168 Set default repository root to ".repos" when running in CI environment 2017-04-29 15:14:49 +02:00