Skip to content

Commit

Permalink
test: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Sep 19, 2024
1 parent 2b29720 commit 845c70f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 72 deletions.
88 changes: 17 additions & 71 deletions embed/scaffold/init/$.posh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ prompt:
env:
- name: PATH
value: "${PROJECT_ROOT}/bin:${PATH}"
- name: GOPROXY
value: "https://proxy.golang.org,direct"

## Ownbrew settings
ownbrew:
Expand All @@ -36,33 +34,24 @@ ownbrew:
require:
## Required environment variables
envs: []
## Example: require GITHUB_TOKEN
#- name: GITHUB_TOKEN
## Example: require VOLTA_HOME
#- name: VOLTA_HOME
# help: |
# You need to export a GITHUB_TOKEN in your environment!
# Missing required $VOLTA_HOME env var.
#
# To do so, create an access token on https://github.com/settings/tokens with the following permissions:
# Please initialize volta and ensure $VOLTA_HOME is set:
#
# - repo
# - write:packages
# - delete:packages
#
# and export it into your environment e.g. ZSH:
#
# $ vi ~/.zshenv
#
# export GITHUB_TOKEN=XXX
# $ volta setup

## Required scripts that need to succeed
scripts: []
## Example: require 1Password account
#- name: op
## Example: git
#- name: git
# command: |
# [[ $(op account --account <ACCOUNT> get 2>&1) =~ "found no account" ]] && exit 1 || exit 0
# git status && exit 0 || exit 1
# help: |
# You're 1Password account is not registered yet! Please do so by running:
#
# $ op account add --address <ACCOUNT>.1password.eu --email <EMAIL>
# This is not a git repo. Please clone the repository

## Example: npm
#- name: npm
# command: npm whoami --registry=https://npm.pkg.github.com > /dev/null 2>&1
Expand All @@ -88,66 +77,23 @@ require:

## Example: go
#- name: go
# version: '>=1.19.4'
# version: '>=1.23'
# 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
#- name: volta
# version: '>=2'
# command: volta --version
# help: |
# Please ensure you have 'node' installed in the required version: %s!
# Please ensure you have 'volta' installed in a recent 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!
# $ curl https://get.volta.sh | bash
#
# $ go install golang.org/x/tools/cmd/goimports@latest
# Or see the documentation: https://docs.volta.sh/guide/getting-started


## Integrations
Expand Down
2 changes: 1 addition & 1 deletion embed/scaffold/init/$.posh/go.mod.gotext
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module {{ .module }}/posh

go 1.21
go 1.23.0

replace (
github.com/c-bata/go-prompt v0.2.6 => github.com/franklinkim/go-prompt v0.2.7-0.20210427061716-a8f4995d7aa5
Expand Down

0 comments on commit 845c70f

Please sign in to comment.