This repository was archived by the owner on May 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplugin.yaml
More file actions
38 lines (38 loc) · 1.15 KB
/
plugin.yaml
File metadata and controls
38 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: cli-plugin
description: Adds the capability of a CLI to the python-app-template
display-name: cli-plugin
picture: https://avatars.githubusercontent.com/u/13245136?s=200&v=4
category: backend # Ref: https://docs.stackspot.com/latest/docs/creators-guide/yaml/#category
compatibility:
- python
about: docs/about.md
usage: docs/usage.md
use-case: docs/use-case.md
implementation: docs/implementation.md
technologies: # Ref: https://docs.stackspot.com/latest/docs/creators-guide/yaml/#technologies
- "Python"
types:
- app
inputs:
- label: CLI Command Name
type: text
name: cli_command_name
default: mycli
global-computed-inputs:
cli_command_name_lower: "{{inputs.cli_command_name|lower}}"
hooks:
- type: edit
trigger: before-render
path: "src/pyproject.toml"
changes:
- insert:
line: -1
snippet: "snippets/poetryscripts"
when:
not-exists: "{{cli_command_name_lower}} = '{{project_name_sanitized}}.cli:main'"
- search:
string: "[tool.poetry.dependencies]"
replace-by:
snippet: "snippets/clickdependency"
when:
not-exists: "click"