Skip to content

Commit 76b6ff2

Browse files
committed
Merge branch 'master' into validate_instance_cmd
2 parents 9f58a28 + 037d69f commit 76b6ff2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1365
-1781
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
###################################### READ ME ###########################################
3+
### This changelog should always be read on `master` branch. Its contents on version ###
4+
### branches do not necessarily reflect the changes that have gone into that branch. ###
5+
##########################################################################################
6+
-->
7+
8+
# Changelog
9+
10+
All notable changes to `src-cli` are documented in this file.
11+
12+
## Unreleased
13+
14+
### Added
15+
16+
- Pull missing docker images automatically. [#191](https://github.com/sourcegraph/src-cli/pull/191)
17+
18+
- Searches that result in errors will now display any alerts returned by Sourcegraph, including suggestions for how the search could be corrected. [#221](https://github.com/sourcegraph/src-cli/pull/221)
19+
20+
### Changed
21+
22+
- The terminal UI has been replaced by the logger-based UI that was previously only visible in verbose-mode (`-v`). [#228](https://github.com/sourcegraph/src-cli/pull/228)
23+
24+
### Fixed
25+
26+
### Removed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ Point `src` to your instance and access token using environment variables:
7373
SRC_ENDPOINT=https://sourcegraph.example.com SRC_ACCESS_TOKEN="secret" src search 'foobar'
7474
```
7575

76-
### Via global configuration file
77-
78-
Create a `$HOME/src-config.json` with:
79-
80-
```sh
81-
{"endpoint": "https://sourcegraph.example.com", "accessToken": "secret"}
82-
```
83-
84-
Then `src search 'foobar'` and other commands will automatically use that configuration!
85-
8676
### Where to get an access token
8777

8878
Visit your Sourcegraph instance (or https://sourcegraph.com), click your username in the top right to open the user menu, select **Settings**, and then select **Access tokens** in the left hand menu.

cmd/src/actions_create.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,28 @@ import (
77
"os"
88
)
99

10-
const actionDefinitionTemplate = `{
11-
"$schema": "https://raw.githubusercontent.com/sourcegraph/src-cli/master/schema/actions.schema.json",
12-
"scopeQuery": "",
13-
"steps": [
14-
]
15-
}
10+
const actionDefinitionTemplate = `scopeQuery: ""
11+
12+
steps:
13+
- type: command
14+
args:
15+
- echo
16+
- Hello world
1617
`
1718

1819
func init() {
1920
usage := `
20-
Create an empty action definition in action.json (if not -o flag is given). This command is meant to help with creating action definitions to be used with 'src actions exec'.
21+
Create an empty action definition in action.yml (if no -o flag is given). This command is meant to help with creating action definitions to be used with 'src actions exec'.
2122
2223
Examples:
2324
24-
Create a new action definition in action.json:
25+
Create a new action definition in action.yml:
2526
2627
$ src actions create
2728
28-
Create a new action definition in ~/Documents/my-action.json:
29+
Create a new action definition in ~/Documents/my-action.yml:
2930
30-
$ src actions create -o ~/Documents/my-action.json
31+
$ src actions create -o ~/Documents/my-action.yml
3132
`
3233

3334
flagSet := flag.NewFlagSet("create", flag.ExitOnError)
@@ -38,7 +39,7 @@ Examples:
3839
}
3940

4041
var (
41-
fileFlag = flagSet.String("o", "action.json", "The destination file name. Default value is 'action.json'")
42+
fileFlag = flagSet.String("o", "action.yml", "The destination file name. Default value is 'action.yml'")
4243
)
4344

4445
handler := func(args []string) error {

0 commit comments

Comments
 (0)