Skip to content

Commit b721a12

Browse files
authored
Remove clone-in-progress flag (#246)
1 parent 59d8d22 commit b721a12

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ All notable changes to `src-cli` are documented in this file.
1919

2020
### Removed
2121

22+
- Removed `clone-in-progress` flag. [#246](https://github.com/sourcegraph/src-cli/pull/246)
23+
2224
## 3.16
2325

2426
### Added

cmd/src/repos_list.go

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Examples:
3939
queryFlag = flagSet.String("query", "", `Returns repositories whose names match the query. (e.g. "myorg/")`)
4040
// TODO: add support for "names" field.
4141
clonedFlag = flagSet.Bool("cloned", true, "Include cloned repositories.")
42-
cloneInProgressFlag = flagSet.Bool("clone-in-progress", true, "Include repositories that are currently being cloned.")
4342
notClonedFlag = flagSet.Bool("not-cloned", true, "Include repositories that are not yet cloned and for which cloning is not in progress.")
4443
indexedFlag = flagSet.Bool("indexed", true, "Include repositories that have a text search index.")
4544
notIndexedFlag = flagSet.Bool("not-indexed", true, "Include repositories that do not have a text search index.")
@@ -62,7 +61,6 @@ Examples:
6261
$first: Int,
6362
$query: String,
6463
$cloned: Boolean,
65-
$cloneInProgress: Boolean,
6664
$notCloned: Boolean,
6765
$indexed: Boolean,
6866
$notIndexed: Boolean,
@@ -73,7 +71,6 @@ Examples:
7371
first: $first,
7472
query: $query,
7573
cloned: $cloned,
76-
cloneInProgress: $cloneInProgress,
7774
notCloned: $notCloned,
7875
indexed: $indexed,
7976
notIndexed: $notIndexed,
@@ -105,15 +102,14 @@ Examples:
105102
return (&apiRequest{
106103
query: query,
107104
vars: map[string]interface{}{
108-
"first": nullInt(*firstFlag),
109-
"query": nullString(*queryFlag),
110-
"cloned": *clonedFlag,
111-
"cloneInProgress": *cloneInProgressFlag,
112-
"notCloned": *notClonedFlag,
113-
"indexed": *indexedFlag,
114-
"notIndexed": *notIndexedFlag,
115-
"orderBy": orderBy,
116-
"descending": *descendingFlag,
105+
"first": nullInt(*firstFlag),
106+
"query": nullString(*queryFlag),
107+
"cloned": *clonedFlag,
108+
"notCloned": *notClonedFlag,
109+
"indexed": *indexedFlag,
110+
"notIndexed": *notIndexedFlag,
111+
"orderBy": orderBy,
112+
"descending": *descendingFlag,
117113
},
118114
result: &result,
119115
done: func() error {

0 commit comments

Comments
 (0)