Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add codeblocks for command names in 9o.md #655

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions 9o.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ shell might override these variables with its own, epecilly in the case of `$PWD
9o's commands
==================

* help: Present documentation for 9o and its supported commands
* `help`: Present documentation for 9o and its supported commands

* build: build the current package
* `build`: build the current package

* run: build the current package. If it's a regular package run its tests otherwise(package main)
* `run`: build the current package. If it's a regular package run its tests otherwise(package main)
execute it. e.g. `run` or `run -flag1 -flag2=abc`

* replay: like `run` but attempts to cancel any active executions before running
* `replay`: like `run` but attempts to cancel any active executions before running

* go: run the `go` command e.g. `go help`
* `go`: run the `go` command e.g. `go help`

* clear: clears the output panel
* `clear`: clears the output panel

* tskill: lists or cancels active tasks.
* `tskill`: lists or cancels active tasks.
type `tskill` to show a palette containing a list of active tasks and their summary and cancel them where possible

type `tskill [TASK ID]` to cancel the task. The task is represented by #TASK_ID. (you will be prompted with an ok/cancel dialog to confirm the action)
Expand All @@ -74,30 +74,30 @@ shell might override these variables with its own, epecilly in the case of `$PWD
`tskill replay` kill the last instance of the replay command
`tskill go` kill the last instance of the go command `go run` etc. note, however that this may fail to actually kill the executable being run by `go run`

* settings: list settings as seen by GoSublime.
* `settings`: list settings as seen by GoSublime.
type `settings` to get a listing of all settings.
type `setting [NAME1] [NAME2] ...` to the value of the listed names

* env: list environment variables as seen/generated by GoSublime.
* `env`: list environment variables as seen/generated by GoSublime.
type `env` to get a listing of all environment vars usable by GoSublime.
type `env [NAME1] [NAME2] ...` to the value of the listed names

* share: share the active view's content on play.golang.org
* `share`: share the active view's content on play.golang.org

* hist: manage command history
* `hist`: manage command history
type `hist` to list all historical commands
type `hist erase` to erase all historical commands

* cd: change directory
* `cd`: change directory
type `cd` to cd to the directory of the current file (like ctrl+9 does)
type `cd ~/go` to cd to the `go` directory in your home directory
type `cd $GOROOT/src/pkg/fmt` to cd the `src/pkg/fmt` in your GOROOT

* which: locate a command
* `which`: locate a command
type `which` to list all builtins
type `which cmd1 cmd2...` to locate the listed commands

* echo: output the specified arguments
* `echo`: output the specified arguments
type `echo $_fn` to output the path to the current file (if it has a name on-disk)

Executing commands
Expand Down