Repository navigation
Expand file tree
/
Copy pathTemplateInfo.cs
More file actions
79 lines (67 loc) · 1.99 KB
/
Copy pathTemplateInfo.cs
File metadata and controls
79 lines (67 loc) · 1.99 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PSModuleDevelopment.Template
{
/// <summary>
/// Class containing meta information about a template
/// </summary>
[Serializable]
public class TemplateInfo
{
/// <summary>
/// The name of the template
/// </summary>
public string Name;
/// <summary>
/// What kind of template is this?
/// </summary>
public TemplateType Type;
/// <summary>
/// What version is the template
/// </summary>
public Version Version;
/// <summary>
/// Text describing the template
/// </summary>
public string Description;
/// <summary>
/// Author of the template
/// </summary>
public string Author;
/// <summary>
/// When was the template originally created?
/// </summary>
public DateTime CreatedOn;
/// <summary>
/// List of tags that have been assigned to the template
/// </summary>
public List<string> Tags = new List<string>();
/// <summary>
/// List of parameters the template accepts
/// </summary>
public List<string> Parameters = new List<string>();
/// <summary>
/// The store the template is stored in.
/// </summary>
public string Store;
/// <summary>
/// The path to the template file
/// </summary>
public string Path;
/// <summary>
/// What template generation is this file?
/// </summary>
public int Generation = 1;
/// <summary>
/// The version-qualified name of the template
/// </summary>
/// <returns>The version-qualified name of the template</returns>
public override string ToString()
{
return String.Format("{0} {1}", Name, Version);
}
}
}