mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
A few fixes to docs generation and default config (#4570)
* A few fixes to docs generation and default config * A few more fixes
This commit is contained in:
@ -1,16 +0,0 @@
|
||||
---
|
||||
title: git checkout
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
|
||||
|
||||
## Signature
|
||||
|
||||
```> git checkout (branch)```
|
||||
|
||||
## Parameters
|
||||
|
||||
- `branch`:
|
||||
|
@ -1,17 +0,0 @@
|
||||
---
|
||||
title: git push
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
|
||||
|
||||
## Signature
|
||||
|
||||
```> git push (remote) (branch)```
|
||||
|
||||
## Parameters
|
||||
|
||||
- `remote`:
|
||||
- `branch`:
|
||||
|
@ -8,7 +8,7 @@ Post a body to a URL (HTTP POST operation).
|
||||
|
||||
## Signature
|
||||
|
||||
```> post (path) (body) --user --password --content-type --content-length --raw --insecure```
|
||||
```> post (path) (body) --user --password --content-type --content-length --headers --raw --insecure```
|
||||
|
||||
## Parameters
|
||||
|
||||
@ -18,6 +18,7 @@ Post a body to a URL (HTTP POST operation).
|
||||
- `--password {any}`: the password when authenticating
|
||||
- `--content-type {any}`: the MIME type of content to post
|
||||
- `--content-length {any}`: the length of the content being posted
|
||||
- `--headers {any}`: custom headers you want to add
|
||||
- `--raw`: return values as a string instead of a table
|
||||
- `--insecure`: allow insecure server connections when using SSL
|
||||
|
||||
@ -33,3 +34,8 @@ Post content to url.com, with username and password
|
||||
> post -u myuser -p mypass url.com 'body'
|
||||
```
|
||||
|
||||
Post content to url.com, with custom header
|
||||
```shell
|
||||
> post -H [my-header-key my-header-value] url.com
|
||||
```
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
let vers = (version).version
|
||||
|
||||
for command in ($scope.commands | where is_custom == $false) {
|
||||
for command in ($scope.commands | where is_custom == $false && is_external == $false) {
|
||||
let top = $"---
|
||||
title: ($command.command)
|
||||
layout: command
|
||||
@ -61,5 +61,6 @@ $"($example.description)
|
||||
|
||||
let safe_name = ($command.command | str find-replace '\?' '' | str find-replace ' ' '_')
|
||||
$doc | save --raw $"./docs/commands/($safe_name).md"
|
||||
$"./docs/commands/($safe_name).md"
|
||||
} | length | $"($in) commands written"
|
||||
|
||||
|
Reference in New Issue
Block a user