Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Komodo
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoon
Komodo
Merge requests
!187
check more args in the benchmarks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
check more args in the benchmarks
benchmarks-arg-checks
into
main
Overview
1
Commits
2
Pipelines
1
Changes
8
Merged
STEVAN Antoine
requested to merge
benchmarks-arg-checks
into
main
4 months ago
Overview
1
Commits
2
Pipelines
1
Changes
8
Expand
this replaces the "
nothing to do
" messages from Nushell commands with more explicite errors.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
0057edee
2 commits,
4 months ago
8 files
+
42
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
benchmarks/nu-lib/fec/run.nu
+
4
−
4
Options
use ../utils log
use ../utils formats *
use ../utils args check-list-arg
use std formats *
@@ -16,10 +17,9 @@ export def main [
]: list<int> -> path {
let input = $in
if ($ks | is-empty) or ($input | is-empty) or ($curves | is-empty) {
print "nothing to do"
return
}
$ks | check-list-arg --cmd "fec run" --arg "--ks" --span (metadata $ks).span
$curves | check-list-arg --cmd "fec run" --arg "--curves" --span (metadata $curves).span
$in | check-list-arg --cmd "fec run" --arg "pipeline input"
let new_file = $output == null
let output = $output | default (mktemp --tmpdir komodo_fec.XXXXXX)