mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 04:43:08 +03:00
more tests
This commit is contained in:
18
test/integration/customCommands/config/config.yml
Normal file
18
test/integration/customCommands/config/config.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
disableStartupPopups: true
|
||||
customCommands:
|
||||
- key : 'N'
|
||||
description: 'Add file'
|
||||
command: "echo {{index .PromptResponses 0}} > {{index .PromptResponses 1}}"
|
||||
context: 'files'
|
||||
prompts:
|
||||
- type: 'input'
|
||||
title: 'File name:'
|
||||
- type: 'input'
|
||||
title: 'File content:'
|
||||
gui:
|
||||
theme:
|
||||
activeBorderColor:
|
||||
- green
|
||||
- bold
|
||||
SelectedRangeBgcolor:
|
||||
- reverse
|
||||
@@ -0,0 +1 @@
|
||||
test
|
||||
1
test/integration/customCommands/expected/.git_keep/HEAD
Normal file
1
test/integration/customCommands/expected/.git_keep/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
10
test/integration/customCommands/expected/.git_keep/config
Normal file
10
test/integration/customCommands/expected/.git_keep/config
Normal file
@@ -0,0 +1,10 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
||||
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
test/integration/customCommands/expected/.git_keep/index
Normal file
BIN
test/integration/customCommands/expected/.git_keep/index
Normal file
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
# git ls-files --others --exclude-from=.git/info/exclude
|
||||
# Lines that start with '#' are comments.
|
||||
# For a project mostly in C, the following would be a good set of
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
||||
.DS_Store
|
||||
@@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 15bdb2c31c825116ad5af06ee25517d90b24f13b CI <CI@example.com> 1617684452 +1000 commit (initial): test
|
||||
@@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 15bdb2c31c825116ad5af06ee25517d90b24f13b CI <CI@example.com> 1617684452 +1000 commit (initial): test
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
15bdb2c31c825116ad5af06ee25517d90b24f13b
|
||||
1
test/integration/customCommands/expected/blah
Normal file
1
test/integration/customCommands/expected/blah
Normal file
@@ -0,0 +1 @@
|
||||
myfile
|
||||
1
test/integration/customCommands/recording.json
Normal file
1
test/integration/customCommands/recording.json
Normal file
@@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":837,"Mod":0,"Key":256,"Ch":78},{"Timestamp":1622,"Mod":0,"Key":256,"Ch":109},{"Timestamp":1798,"Mod":0,"Key":256,"Ch":121},{"Timestamp":1918,"Mod":0,"Key":256,"Ch":102},{"Timestamp":2006,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2078,"Mod":0,"Key":256,"Ch":108},{"Timestamp":2174,"Mod":0,"Key":256,"Ch":101},{"Timestamp":2431,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3246,"Mod":0,"Key":256,"Ch":98},{"Timestamp":3294,"Mod":0,"Key":256,"Ch":108},{"Timestamp":3398,"Mod":0,"Key":256,"Ch":97},{"Timestamp":3462,"Mod":0,"Key":256,"Ch":104},{"Timestamp":3735,"Mod":0,"Key":13,"Ch":13},{"Timestamp":4206,"Mod":0,"Key":256,"Ch":32},{"Timestamp":4421,"Mod":0,"Key":256,"Ch":99},{"Timestamp":4646,"Mod":0,"Key":256,"Ch":116},{"Timestamp":4726,"Mod":0,"Key":256,"Ch":101},{"Timestamp":4886,"Mod":0,"Key":256,"Ch":115},{"Timestamp":4918,"Mod":0,"Key":256,"Ch":116},{"Timestamp":5190,"Mod":0,"Key":13,"Ch":13},{"Timestamp":5550,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
||||
8
test/integration/customCommands/setup.sh
Normal file
8
test/integration/customCommands/setup.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $1
|
||||
|
||||
git init
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
1
test/integration/customCommands/test.json
Normal file
1
test/integration/customCommands/test.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "description": "Invoke a custom command that creates a file, and then stage and commit that file", "speed": 5 }
|
||||
Reference in New Issue
Block a user