File: spec.hcldec

package info (click to toggle)
golang-github-hashicorp-hcl-v2 2.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,120 kB
  • sloc: ruby: 205; makefile: 72; python: 43; sh: 11
file content (136 lines) | stat: -rw-r--r-- 2,227 bytes parent folder | download
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
object {
  attr "name" {
    type     = string
    required = true
  }
  attr "version" {
    type     = string
    required = true
  }
  attr "description" {
    type = string
  }
  attr "keywords" {
    type = list(string)
  }
  attr "homepage" {
    # "homepage_url" in input file is translated to "homepage" in output
    name = "homepage_url"
  }
  block "bugs" {
    object {
      attr "url" {
        type = string
      }
      attr "email" {
        type = string
      }
    }
  }
  attr "license" {
    type = string
  }
  block "author" {
    object {
      attr "name" {
        type = string
      }
      attr "email" {
        type = string
      }
      attr "url" {
        type = string
      }
    }
  }
  block_list "contributors" {
    block_type = "contributor"
    object {
      attr "name" {
        type = string
      }
      attr "email" {
        type = string
      }
      attr "url" {
        type = string
      }
    }
  }
  attr "files" {
    type = list(string)
  }
  attr "main" {
    type = string
  }
  attr "bin" {
    type = map(string)
  }
  attr "man" {
    type = list(string)
  }
  attr "directories" {
    type = map(string)
  }
  block "repository" {
    object {
      attr "type" {
        type     = string
        required = true
      }
      attr "url" {
        type     = string
        required = true
      }
    }
  }
  attr "scripts" {
    type = map(string)
  }
  attr "config" {
    type = map(string)
  }
  attr "dependencies" {
    type = map(string)
  }
  attr "devDependencies" {
    name = "dev_dependencies"
    type = map(string)
  }
  attr "peerDependencies" {
    name = "peer_dependencies"
    type = map(string)
  }
  attr "bundledDependencies" {
    name = "bundled_dependencies"
    type = map(string)
  }
  attr "optionalDependencies" {
    name = "optional_dependencies"
    type = map(string)
  }
  attr "engines" {
    type = map(string)
  }
  attr "os" {
    type = list(string)
  }
  attr "cpu" {
    type = list(string)
  }
  attr "prefer_global" {
    type = bool
  }
  default "private" {
    attr {
      name = "private"
      type = bool
    }
    literal {
      value = false
    }
  }
  attr "publishConfig" {
    type = map(any)
  }
}