FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
github_cli/features/init.feature at master · danieldeb/github_cli · GitHub
danieldeb
/
github_cli
Public
forked from
piotrmurach/github_cli
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
github_cli
/
features
/
init.feature
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (39 loc) · 1.47 KB
Breadcrumbs
github_cli
/
features
/
init.feature
Copy path
File metadata and controls
45 lines (39 loc) · 1.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@ci-run
Feature
:
Init command
As a developer who wants to set global settings for interaction with GitHub API
When
I use interface provided by GCLI
I
have ability to create configuration file
Scenario
:
Installs global config file
When
I run `gcli init`
Then
the output should contain:
"""
Writing new configuration file to /tmp/fakehome/.githubrc
"""
And
a file named
"/tmp/fakehome/.githubrc"
should exist
And
the file
"/tmp/fakehome/.githubrc"
should contain
"user.token:"
Scenario
:
Installs local config file
Given
a directory named
"piotr"
When
I cd to
"piotr"
And
I run `gcli init --local`
Then
a file named
".githubrc"
should exist
And
the file
".githubrc"
should contain
"user.token:"
Scenario
:
Global config file arleady exists
Given
an empty file named
"/tmp/fakehome/.githubrc"
When
I run `gcli init`
Then
the output should contain:
"""
Not overwritting existing config file /tmp/fakehome/.githubrc, use --force to override.
"""
Scenario
:
Force global config file override
Given
an empty file named
"/tmp/fakehome/.githubrc"
When
I run `gcli init --force`
Then
the output should contain:
"""
Writing new configuration file to /tmp/fakehome/.githubrc
"""
Scenario
:
Install config file with custom name
When
I run `gcli init .custom-name`
Then
the output should contain:
"""
Writing new configuration file to /tmp/fakehome/.custom-name
"""
Back
|
FazBrowse Home
|
New Git URL