1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00
woodpecker/cli
manuelluis 9c684b7a22
Add option to set the local repository path to the cli command exec. (#3524)
The cli command exec not handle in a coherent way the repository path
when a directory or filename is given for the pipeline.

` woodpecker-cli exec [command options] [path/to/.woodpecker.yaml]`

If the path to the pipeline is a file in the `.woodpecker` directory,
for example: `.woodpecker/pipeline.yaml`,
the repository path will be: `.woodpecker`

If the path to the pipeline yaml is a directory with more than one
level, for example `ci/woodpecker/`,
the repository path will be:  `ci`

In order not to break the old behavior we added a new option to put the
root directory of the repository:
~~~
woodpecker-cli exec --local --repo-path . --pipeline-event manual
.woodpecker/build.yml
~~~
2024-03-21 00:19:48 +01:00
..
common Cli setup command (#3384) 2024-03-13 11:08:22 +01:00
cron Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
deploy Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
exec Add option to set the local repository path to the cli command exec. (#3524) 2024-03-21 00:19:48 +01:00
info Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
internal Exclude setup from cli command exec. (#3523) 2024-03-20 17:45:46 +01:00
lint Add depends_on support for steps (#2771) 2023-12-24 12:14:30 +01:00
log Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
loglevel Lowercase all log strings (#3173) 2024-01-11 19:17:07 +01:00
pipeline Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
registry Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
repo Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
secret Add release event trigger (#3226) 2024-01-30 17:39:00 +01:00
setup Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
update Cli updater (#3382) 2024-02-19 09:16:27 +01:00
user Enable golangci linter stylecheck (#3167) 2024-01-10 22:56:42 +01:00
README.md pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00

Woodpecker CLI

Command line client for the Woodpecker continuous integration server.

Please see the official documentation at https://woodpecker-ci.org/docs/cli