Published by j178 over 1 year ago
Published by j178 over 1 year ago
leetgo init
flag issue (@j178)Published by j178 over 1 year ago
--skip-editor
to leetgo pick
(@j178)today-1
) not work (#199) (@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
Providing LeetCode cookies and password in config file is no longer supported. Previously you can provide cookies or password in the config file:
leetcode:
credentials:
from: cookies
session: xxx
csrftoken: xxx
Now, you should provide them through env variables instead:
export LEETCODE_SESSION=xxx LEETCODE_CSRFTOKEN=xxx
leetcode:
credentials:
from: cookies
or
export LEETCODE_USERNAME=xxx LEETCODE_PASSWORD=xxx
leetcode:
credentials:
from: password
LEETGO_HOME
by @j178 in https://github.com/j178/leetgo/pull/192
Full Changelog: https://github.com/j178/leetgo/compare/v1.0...v1.1
Published by j178 over 1 year ago
We changed code.cpp.cxxflags
and editor.args
from array of string to a single string. If you upgraded from an older version, you will see error like this:
FATA unmarshal config failed: 2 error(s) decoding:
* 'code.cpp.cxxflags' expected type 'string', got unconvertible type '[]interface {}', value: '[-O2 -std=c++17]'
* 'editor.args' expected type 'string', got unconvertible type '[]interface {}', value: '[]'
You can manually fix this by changing code.cpp.cxxflags
and editor.args
to a signle string in ~/.config/leetgo/config.yaml
, or you can use
leetgo init -f -t cn
to regenerate the global configuration.
For example:
editor:
use: custom
command: subl.exe
args: ""
In previous version, leetgo
will open the generated code file using subl.exe
. But in 1.0, you must specify which file to open, you can use
{{.CodeFile}}
, {{.TestFile}}
, {{.DescriptionFile}}
or {{.TestCasesFile}}
in args
to open the specific file. Additionly, you can use {{.Files}}
to open all generated files.
editor:
use: custom
command: subl.exe
args: "{{.Files}}"
editor.args
and code.cpp.cxxflags
single string (#174) (@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
leetgo init
(#173) (@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
yesterday
, today-1
to retrieve history daily questions (#154) (@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
This version, we implemented a unified local testing framework (see #112 ), and rewrited the Go local testing, added CPP local testing (thanks @w43322 ).
And must noted that we changed the code template, you will need to remove the previous global config and generate a new one:
rm ~/.config/leetgo/config.yaml
leetgo init
Published by j178 over 1 year ago
leetgo open
(#115) (@forestmgy)leetgo open
usage and example (@j178)--yes
in leetgo fix
(@j178)leetgo extract
(@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
leetgo fix
to fix your code using OpenAI GPT-3 (#114) (@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago