Skip to content

Commit

Permalink
feat(vim-zig): add zig.vim alias
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Nov 2, 2023
1 parent 81d2eb4 commit bd47c3b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions zig.vim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: zig.vim (alias)
homepage: https://webinstall.dev/vim-zig
tagline: |
`zig.vim` is an alias for `vim-zig`
alias: vim-zig
description: |
See https://webinstall.dev/vim-zig
---

`zig.vim` is an alias for `vim-zig`
5 changes: 5 additions & 0 deletions zig.vim/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env pwsh

Write-Output "'zig.vim@$Env:WEBI_TAG' is an alias for 'vim-zig@$Env:WEBI_VERSION'"
IF ($null -eq $Env:WEBI_HOST -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
curl.exe -fsSL "$Env:WEBI_HOST/vim-zig@$Env:WEBI_VERSION" | powershell
11 changes: 11 additions & 0 deletions zig.vim/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -e
set -u

__redirect_alias_vim_zig() {
echo "'zig.vim@${WEBI_TAG:-}' is an alias for 'vim-zig@${WEBI_VERSION:-}'"
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
curl -fsSL "$WEBI_HOST/vim-zig@${WEBI_VERSION:-}" | sh
}

__redirect_alias_vim_zig
19 changes: 19 additions & 0 deletions zig.vim/releases.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

var git = require('../_common/git-tag.js');
var gitUrl = 'https://github.com/ziglang/zig.vim.git';

module.exports = async function (request) {
let all = await git(gitUrl);

return all;
};

if (module === require.main) {
module.exports(require('@root/request')).then(function (all) {
all = require('../_webi/normalize.js')(all);

let samples = JSON.stringify(all, null, 2);
console.info(samples);
});
}

0 comments on commit bd47c3b

Please sign in to comment.