Repository navigation
Expand file tree
/
Copy pathinit.py
More file actions
45 lines (33 loc) · 1.49 KB
/
Copy pathinit.py
File metadata and controls
45 lines (33 loc) · 1.49 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
39
40
41
42
43
44
45
from gauge.constants import DOCUMENTATION
from response.fallback import fallback
from response.result import Result
skeleton_files = {
"env": """The env directory contains multiple environment specific directories.
Each directory has .property files which define the env variables set during execution for that specific environment.""",
"specs": "The specs directory contains all the spec files for the project.",
"manifest": "It contains gauge specific configurations which includes the information of plugins required in the project."
}
structure = """
On initialization of a gauge project for a particular language a project skeleton is created with the following files
* Env Directory - {}
* Specs Directory - {}
* Manifest file - {}
Project Structure:
"""
def project(a, q):
return Result(message=structure.format(skeleton_files['env'], skeleton_files['specs'], skeleton_files['manifest']),
links={
DOCUMENTATION: "http://getgauge.io/documentation/user/current/getting_started/project_structure/",
},
code="""
|--- env --- default --- default.properties
|
|--- manifest.json
|
|--- specs --- example.spec
""")
def skeleton(args, query):
return Result(message=skeleton_files[args['skeleton']] if args['skeleton'] in skeleton_files else fallback(query))
def initialization(args, q):
return Result(
message="Run `gauge --init {}` to initialize a {} project.".format(args['template'], args['template']))