repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

7e735a2c8a612b365a78bf23f03a773f330f2922

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

nushell/completions/svn.complete.nu

Modified
9 9 | get column1
12 +# TODO: parse xml output
12 14 def "complete svn add paths" [] {
13 15 ^svn status --depth files
14 16 | lines
49 51 # usage: help [SUBCOMMAND...]
50 52 export extern "svn help" [
51 53 subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
52 - --verbose(-v) # also show experimental subcommands and options
54 + --verbose(-v) # also show experimental subcommands and options
57 +# FIXME:
58 +# SVN has short options with double dashes: --changelist(--cl).
59 +# This is not allowed in nu.
61 +# FIXME:
62 +# Multiline doccomments will be rendered without the newlines.
64 +# Print the status of working copy files and directories.
65 +export extern "svn status" [
66 + ...paths: path # PATHs
67 + --show-updates(-u) # display update information
68 + --verbose(-v) # print extra information
69 + --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
70 + --revision(-r): string # ARG (some commands also take ARG1:ARG2 range)
71 + # A revision argument can be one of:
72 + # NUMBER revision number
73 + # '{' DATE '}' revision at start of the date
74 + # 'HEAD' latest in repository
75 + # 'BASE' base rev of item's working copy
76 + # 'COMMITTED' last commit at or before BASE
77 + # 'PREV' revision just before COMMITTED
78 + --quiet(-q) # don't print unversioned items
79 + --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
80 + --incremental # give output suitable for concatenation
81 + --xml # output in XML
82 + --ignore-externals # ignore externals definitions
83 + --changelist:string@"complete svn changelists" # operate only on members of changelist ARG
55 86 # FIXME: https://github.com/nushell/nushell/issues/5012
70 101 --parents # add intermediate parents
104 +# Restore pristine working copy state (undo local changes).
73 105 export extern "svn revert" [
74 106 paths: path@"complete svn revert paths"
75 107 --targets: path # pass contents of file as additional args
79 111 --changelist: string@"complete svn changelists" # operate only on members of changelist ARG
80 112 --remove-added # reverting an added item will remove it from disk
115 +# FIXME
116 +# SVN uses aliases for subcommands. E.g. `co` for `checkout`.
117 +# How to express that with nu extern commands?
119 +# Check out a working copy from a repository.
120 +export extern "svn checkout" [
121 + ...url_with_rev:string # source
122 + path: path # destination
123 + --revision(-r) # ARG (some commands also take ARG1:ARG2 range)
124 + # A revision argument can be one of:
125 + # NUMBER revision number
126 + # '{' DATE '}' revision at start of the date
127 + # 'HEAD' latest in repository
128 + # 'BASE' base rev of item's working copy
129 + # 'COMMITTED' last commit at or before BASE
130 + # 'PREV' revision just before COMMITTED
131 + --quiet(-q) # print nothing, or only summary information
132 + --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
133 + --force # force operation to run
134 + --ignore-externals # ignore externals definitions