add examples

This commit is contained in:
AJ ONeal
2020-04-28 00:11:18 +00:00
parent 07b4e36eed
commit 77be4eb172
9 changed files with 121 additions and 0 deletions
+4
View File
@@ -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) didnt.
# examples: |
# ```bash
# brew install node
# ```
# Straight from https://brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
+4
View File
@@ -5,6 +5,10 @@
# tagline: UI Toolkit for mobile, web, and desktop
# description: |
# Flutter is Googles 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
+28
View File
@@ -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
+42
View File
@@ -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
+13
View File
@@ -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
+12
View File
@@ -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
+4
View File
@@ -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
+2
View File
@@ -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
+12
View File
@@ -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