2021.10.2 - Pre/Post command scipts #27

Closed
opened 2021-04-13 15:42:07 +02:00 by edraft · 0 comments
Owner

Ein CPL-Workspace muss ein weiteres Attribut bekommen, in dem man Aktionen um bestimmte Befehle ausführen kann.

Z.b.
scripts/hello_world.py

print('Hello World')

cpl-workspace.json

{
"WorkspaceSettings": {
    "DefaultProject": "cpl_cli",
    "Projects": {
      "cpl": "src/cpl/cpl.json",
      "cpl_cli": "src/cpl_cli/cpl_cli.json"
    },
    "Scripts": {
    	"hello-world": "python3 scripts/hello_world.py",
    	"prebuild": "hello-world",
    	"build": "cpl build"
    }
  }
 }

Befehle:

cd path/to/workspace/
cpl build

Ausgabe:

Hello World
Reading source files:									done
Creating internal packages:								done
Building application:									done
Ein CPL-Workspace muss ein weiteres Attribut bekommen, in dem man Aktionen um bestimmte Befehle ausführen kann. Z.b. scripts/hello_world.py ```py print('Hello World') ``` cpl-workspace.json ```json { "WorkspaceSettings": { "DefaultProject": "cpl_cli", "Projects": { "cpl": "src/cpl/cpl.json", "cpl_cli": "src/cpl_cli/cpl_cli.json" }, "Scripts": { "hello-world": "python3 scripts/hello_world.py", "prebuild": "hello-world", "build": "cpl build" } } } ``` Befehle: ```sh cd path/to/workspace/ cpl build ``` Ausgabe: ```sh Hello World Reading source files: done Creating internal packages: done Building application: done ```
edraft added the
improvement
question
labels 2021-04-13 15:42:07 +02:00
edraft changed title from Pre/Post command scipts to 2021.10.2 - Pre/Post command scipts 2021-07-24 15:33:56 +02:00
edraft added this to the Sprint 2021.10 project 2021-07-24 15:37:00 +02:00
edraft added
story
and removed
question
labels 2021-07-24 15:38:53 +02:00
edraft self-assigned this 2021-07-25 12:15:26 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sh-edraft.de/sh_cpl#27
No description provided.