Skip to content

Commit 2e2c456

Browse files
author
saying121
committed
completions: update
1 parent 539c9c7 commit 2e2c456

File tree

4 files changed

+50
-51
lines changed

4 files changed

+50
-51
lines changed

.github/workflows/release.yml

+45-45
Original file line numberDiff line numberDiff line change
@@ -175,48 +175,48 @@ jobs:
175175
# ref: refs/tags/${{ needs.get-version.outputs.tag_version }}
176176
checksum: sha256
177177

178-
- name: tar
179-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
180-
run: |
181-
cp ./target/x86_64-unknown-linux-gnu/release/lcode ./lcode
182-
tar -cvf lcode.tar ./lcode
183-
184-
- uses: actions/upload-artifact@v4
185-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
186-
with:
187-
name: lcode.tar
188-
path: lcode.tar
189-
190-
completions:
191-
runs-on: ubuntu-latest
192-
needs: [build]
193-
steps:
194-
- uses: actions/checkout/@v4
195-
196-
- uses: actions/download-artifact@v4
197-
with:
198-
merge-multiple: true
199-
200-
- name: Generate completions
201-
env:
202-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
203-
COMMIT_MSG: |
204-
completions(generated): update completions
205-
run: |
206-
tar -xvf lcode.tar
207-
# git checkout main
208-
./lcode --generate=zsh >./completions/_lcode
209-
./lcode --generate=bash >./completions/lcode.bash
210-
./lcode --generate=fish >./completions/lcode.fish
211-
212-
git config user.email "actions@github"
213-
git config user.name "Github Actions"
214-
git remote set-url origin https://x-access-token:"${GITHUB_TOKEN}"@github.com/"${GITHUB_REPOSITORY}".git
215-
git add completions/
216-
217-
git tag
218-
git log 2
219-
220-
echo "${GITHUB_REF}"
221-
# shellcheck disable=SC2015
222-
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push --verbose)
178+
# - name: tar
179+
# if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
180+
# run: |
181+
# cp ./target/x86_64-unknown-linux-gnu/release/lcode ./lcode
182+
# tar -cvf lcode.tar ./lcode
183+
#
184+
# - uses: actions/upload-artifact@v4
185+
# if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
186+
# with:
187+
# name: lcode.tar
188+
# path: lcode.tar
189+
#
190+
# completions:
191+
# runs-on: ubuntu-latest
192+
# needs: [build]
193+
# steps:
194+
# - uses: actions/checkout/@v4
195+
#
196+
# - uses: actions/download-artifact@v4
197+
# with:
198+
# merge-multiple: true
199+
#
200+
# - name: Generate completions
201+
# env:
202+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
203+
# COMMIT_MSG: |
204+
# completions(generated): update completions
205+
# run: |
206+
# tar -xvf lcode.tar
207+
# # git checkout main
208+
# ./lcode --generate=zsh >./completions/_lcode
209+
# ./lcode --generate=bash >./completions/lcode.bash
210+
# ./lcode --generate=fish >./completions/lcode.fish
211+
#
212+
# git config user.email "actions@github"
213+
# git config user.name "Github Actions"
214+
# git remote set-url origin https://x-access-token:"${GITHUB_TOKEN}"@github.com/"${GITHUB_REPOSITORY}".git
215+
# git add completions/
216+
#
217+
# git tag
218+
# git log 2
219+
#
220+
# echo "${GITHUB_REF}"
221+
# # shellcheck disable=SC2015
222+
# git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push --verbose)

completions/_lcode

+2-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ _arguments "${_arguments_options[@]}" \
110110
'--force[Force update question'\''s information]' \
111111
'-h[Print help]' \
112112
'--help[Print help]' \
113-
':id -- Force update question'\''s information:' \
114113
&& ret=0
115114
;;
116115
(edit)
@@ -344,7 +343,7 @@ _lcode_commands() {
344343
'test:Test your code \[ alias\: t \]' \
345344
'submit:Submit your code \[ alias\: st \]' \
346345
'sublist:Get submit list \[ alias\: sl \]' \
347-
'gencon:Generate a config, will also be automatically generated at runtime \[ alias\: g \]' \
346+
'gencon:Generate a config \[ alias\: g \]' \
348347
'tui:Open Tui \[ alias\: T \]' \
349348
'config:Edit config \[ alias\: C \]' \
350349
'log:Open Log \[ alias\: L \]' \
@@ -500,7 +499,7 @@ _lcode__help_commands() {
500499
'test:Test your code \[ alias\: t \]' \
501500
'submit:Submit your code \[ alias\: st \]' \
502501
'sublist:Get submit list \[ alias\: sl \]' \
503-
'gencon:Generate a config, will also be automatically generated at runtime \[ alias\: g \]' \
502+
'gencon:Generate a config \[ alias\: g \]' \
504503
'tui:Open Tui \[ alias\: T \]' \
505504
'config:Edit config \[ alias\: C \]' \
506505
'log:Open Log \[ alias\: L \]' \

completions/lcode.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ _lcode() {
303303
return 0
304304
;;
305305
lcode__fzy__detail)
306-
opts="-f -h --force --help <ID>"
306+
opts="-f -h --force --help"
307307
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
308308
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
309309
return 0

completions/lcode.fish

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ complete -c lcode -n "__fish_use_subcommand" -f -a "sync" -d 'Syncanhronize leet
88
complete -c lcode -n "__fish_use_subcommand" -f -a "test" -d 'Test your code [ alias: t ]'
99
complete -c lcode -n "__fish_use_subcommand" -f -a "submit" -d 'Submit your code [ alias: st ]'
1010
complete -c lcode -n "__fish_use_subcommand" -f -a "sublist" -d 'Get submit list [ alias: sl ]'
11-
complete -c lcode -n "__fish_use_subcommand" -f -a "gencon" -d 'Generate a config, will also be automatically generated at runtime [ alias: g ]'
11+
complete -c lcode -n "__fish_use_subcommand" -f -a "gencon" -d 'Generate a config [ alias: g ]'
1212
complete -c lcode -n "__fish_use_subcommand" -f -a "tui" -d 'Open Tui [ alias: T ]'
1313
complete -c lcode -n "__fish_use_subcommand" -f -a "config" -d 'Edit config [ alias: C ]'
1414
complete -c lcode -n "__fish_use_subcommand" -f -a "log" -d 'Open Log [ alias: L ]'
@@ -53,7 +53,7 @@ complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subc
5353
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "test" -d 'Test your code [ alias: t ]'
5454
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "submit" -d 'Submit your code [ alias: st ]'
5555
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "sublist" -d 'Get submit list [ alias: sl ]'
56-
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "gencon" -d 'Generate a config, will also be automatically generated at runtime [ alias: g ]'
56+
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "gencon" -d 'Generate a config [ alias: g ]'
5757
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "tui" -d 'Open Tui [ alias: T ]'
5858
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "config" -d 'Edit config [ alias: C ]'
5959
complete -c lcode -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from edit; and not __fish_seen_subcommand_from fzy; and not __fish_seen_subcommand_from detail; and not __fish_seen_subcommand_from sync; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from submit; and not __fish_seen_subcommand_from sublist; and not __fish_seen_subcommand_from gencon; and not __fish_seen_subcommand_from tui; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from log; and not __fish_seen_subcommand_from star; and not __fish_seen_subcommand_from help" -f -a "log" -d 'Open Log [ alias: L ]'

0 commit comments

Comments
 (0)