mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
add examples
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
# tagline: The Missing Package Manager for macOS (or Linux)
|
||||
# description: |
|
||||
# Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.
|
||||
# examples: |
|
||||
# ```bash
|
||||
# brew install node
|
||||
# ```
|
||||
|
||||
# Straight from https://brew.sh
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
# tagline: UI Toolkit for mobile, web, and desktop
|
||||
# description: |
|
||||
# Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
|
||||
# examples: |
|
||||
# ```bash
|
||||
# flutter create my_app
|
||||
# ```
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
@@ -5,6 +5,34 @@
|
||||
# tagline: The Go Programming Language tools
|
||||
# description: |
|
||||
# Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
|
||||
# examples: |
|
||||
# ```bash
|
||||
# mkdir -p hello/
|
||||
# pushd hello/
|
||||
# ```
|
||||
# <br/>
|
||||
#
|
||||
# ```bash
|
||||
# cat << EOF >> main.go
|
||||
# package main
|
||||
#
|
||||
# import (
|
||||
# "fmt"
|
||||
# )
|
||||
#
|
||||
# func main () {
|
||||
# fmt.Println("Hello, World!")
|
||||
# }
|
||||
# EOF
|
||||
# ```
|
||||
# <br/>
|
||||
#
|
||||
# ```bash
|
||||
# go fmt ./...
|
||||
# go build .
|
||||
# ./hello
|
||||
# > Hello, World!
|
||||
# ```
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
@@ -5,6 +5,48 @@
|
||||
# tagline: JavaScript V8 runtime
|
||||
# description: |
|
||||
# Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine
|
||||
# examples: |
|
||||
# ```bash
|
||||
# node -e 'console.log("Hello, World!")'
|
||||
# > Hello, World!
|
||||
# ```
|
||||
# <br/>
|
||||
# <br/>
|
||||
#
|
||||
# <table>
|
||||
# <tr>
|
||||
# <td>Run a webserver</td>
|
||||
# <td><pre><code class="language-bash">
|
||||
# mkdir my-server
|
||||
# pushd my-server
|
||||
# npm init
|
||||
# npm install --save express</code></pre>
|
||||
# <br/>
|
||||
# <code>app.js:</code>
|
||||
# <br/>
|
||||
# <pre><code class="language-javascript">'use strict'
|
||||
# var express = require('express');
|
||||
# var app = express();
|
||||
#
|
||||
# app.use('/', function (req, res, next) {
|
||||
# res.end("Hello, World!");
|
||||
# });
|
||||
#
|
||||
# module.exports = app;</code></pre>
|
||||
# <br/>
|
||||
# <code>server.js:</code>
|
||||
# <br/>
|
||||
# <pre><code class="language-javascript">'use strict'
|
||||
# var http = require('http');
|
||||
# var app = require('./app.js');
|
||||
# http.createServer(app).listen(8080, function () {
|
||||
# console.log('Listening on', this.address());
|
||||
# });</code></pre>
|
||||
# <br/>
|
||||
# <pre><code class="language-bash">npm start</code></pre>
|
||||
# </td>
|
||||
# </tr>
|
||||
# </table>
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
@@ -8,6 +8,19 @@
|
||||
# - Mac, Windows, Linux
|
||||
# - Bash, Zsh, Fish
|
||||
# - Command, Powershell
|
||||
# examples: |
|
||||
# ```bash
|
||||
# pathman add ~/.local/bin
|
||||
# ```
|
||||
# <br/>
|
||||
# ```bash
|
||||
# pathman remove ~/.local/bin
|
||||
# ```
|
||||
# <br/>
|
||||
# ```bash
|
||||
# pathman list
|
||||
# ```
|
||||
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
@@ -5,6 +5,18 @@
|
||||
# tagline: The Rust Toolchain
|
||||
# description: |
|
||||
# A language empowering everyone to build reliable and efficient software.
|
||||
# examples: |
|
||||
# ```bash
|
||||
# cargo install ripgrep
|
||||
# ```
|
||||
# <br/>
|
||||
# ```bash
|
||||
# cargo new hello --bin
|
||||
# cargo build --release
|
||||
# ./hello
|
||||
# > "Hello, world!"
|
||||
# ```
|
||||
|
||||
|
||||
# Straight from https://rustup.rs/
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
# - Launchd (macOS)
|
||||
# - Systemd (Linux)
|
||||
# - Windows Registry
|
||||
# examples: |
|
||||
# ```bash
|
||||
# serviceman add --name my-service ./serve.js --port 3000
|
||||
# ```
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
# tagline: sensible defaults for vim
|
||||
# description: |
|
||||
# Think of sensible.vim as one step above 'nocompatible' mode: a universal set of defaults that (hopefully) everyone can agree on.
|
||||
# examples: |
|
||||
# N/A
|
||||
|
||||
mkdir -p $HOME/.vim/pack/plugins/start
|
||||
git clone --depth=1 https://tpope.io/vim/sensible.git $HOME/.vim/pack/plugins/start/sensible
|
||||
|
||||
@@ -5,6 +5,18 @@
|
||||
# tagline: webinstall.dev for the CLI
|
||||
# description: |
|
||||
# for the people like us that are too lazy even to run `curl https://webinstall.dev/PACKAGE_NAME` - just `webi PACKAGE_NAME` instead
|
||||
# examples: |
|
||||
# ```bash
|
||||
# webi node
|
||||
# ```
|
||||
# <br/>
|
||||
# ```bash
|
||||
# webi golang
|
||||
# ```
|
||||
# <br/>
|
||||
# ```bash
|
||||
# webi rustlang
|
||||
# ```
|
||||
|
||||
# TODO webi package@semver#channel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user