-
Notifications
You must be signed in to change notification settings - Fork 0
/
.posh.yaml
189 lines (153 loc) · 4.71 KB
/
.posh.yaml
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
Version: v1.0
## Prompt settings
prompt:
title: "Sandbox"
prefix: "sandbox >"
history:
limit: 100
filename: .posh/.history
lockFilename: .posh/.history.lock
## Environment variables
env:
- name: PATH
value: "${PROJECT_ROOT}/bin:${PATH}"
- name: GOPROXY
value: "https://proxy.golang.org,direct"
## Plugin settings
plugin:
source: .posh/plugin.go
provider: New
## Ownbrew settings
ownbrew:
binDir: "bin"
tapDir: ".posh/scripts/ownbrew"
tempDir: ".posh/tmp"
cellarDir: ".posh/bin"
packages:
## Remote package
## See `https://github.com/foomo/ownbrew-tap`
# - name: gotsrpc
# tap: foomo/tap/foomo/gotsrpc
# version: 2.6.2
## Local package `.posh/scripts/ownbrew`
# - name: example
# version: 0.0.0
- name: gotsrpc
tap: foomo/tap/foomo/gotsrpc
version: 2.6.2
- name: zeus
tap: foomo/tap/dreadl0ck/zeus
version: 0.9.11
- name: krr
tap: foomo/tap/robusta-dev/krr
version: 1.6.0
## Requirement settings
require:
## Required environment variables
envs:
## Example: require GITHUB_TOKEN
- name: GITHUB_TOKEN
help: |
You need to export a GITHUB_TOKEN in your environment!
To do so, create an access token on https://github.com/settings/tokens with the following permissions:
- repo
- write:packages
- delete:packages
and export it into your environment e.g. ZSH:
$ vi ~/.zshenv
export GITHUB_TOKEN=XXX
## Required scripts that need to succeed
scripts:
## Example: require 1Password account
- name: op
command: |
[[ $(op account --account bestbytes get 2>&1) =~ "found no account" ]] && exit 1 || exit 0
help: |
You're 1Password account is not registered yet! Please do so by running:
$ op account add --address bestbytes.1password.eu --email <EMAIL>
## Example: require
# - name: npm
# command: npm whoami --registry=https://npm.pkg.github.com > /dev/null 2>&1
# help: |
# You're not yet logged into the github npm registry!
#
# $ npm login --scope=@<SCOPE> --registry=https://npm.pkg.github.com
# Username: [GITHUB_USERNAME]
# Password: [GITHUB_TOKEN]
# Email: [EMAIL]
## Required packages to be installed on the host
packages:
## Example: git
- name: git
version: '~2'
command: git version | awk '{print $3}'
help: |
Please ensure you have 'git' installed in the required version: %s!
$ brew update
$ brew install git
## Example: go
- name: go
version: '>=1.19.4'
command: go env GOVERSION | cut -c3-
help: |
Please ensure you have 'go' installed in the required version: %s!
$ brew update
$ brew install go
## Example: onepassword
- name: op
version: '~2'
command: op --version
help: |
Please ensure you have the 1Password cli 'op' installed in the required version: %s!
$ brew update
$ brew install 1password-cli
## Example: node
- name: node
version: '~16'
command: node --version
help: |
Please ensure you have 'node' installed in the required version: %s!
We strongly recommend installing 'nvm' trough:
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
If you already have installed 'nvm' just run the following command to read in the .nvmrc:
$ nvm use
## Example: yarn
- name: yarn
version: '~1'
command: yarn --version
help: |
Please ensure you have 'yarn' installed in the required version: %s!
$ npm install -g yarn
## Example: teleport
- name: tsh
version: '>=10'
command: tsh version --skip-version-check | awk 'NR==1{print $2}'
help: |
Please ensure you have 'teleport' installed in the required version: %s!
$ brew update
$ brew install teleport
## Example: goimports
- name: goimports
version: '>=2022'
command: date -r $(which goimports) +%Y.%-m.%-d
help: |
Please ensure you have 'goimports' installed in a recent version: %s!
$ go install golang.org/x/tools/cmd/goimports@latest
## Integrations
## Example: 1Password
onePassword:
account: bestbytes
tokenFilename: .posh/config/.op
## Example: Custom
welcome:
message: Hi, thanks for using posh!
## Example: Docusaurus
docusaurus:
sourcePath: .posh/docs
imageName: docusaurus
imageTag: posh-sanbox
nodeTag: 18-alpine
localPort: 3000
volumes:
- ${PROJECT_ROOT}:/docusaurus/docs
- ${PROJECT_ROOT}/.posh/docs/docusaurus.config.js:/docusaurus/docusaurus.config.js