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)

+55 / −1 text lines

Diff layout

nushell/completions/svn.complete.nu

Modified

+55 / −1 text lines

99 | get column1
12# TODO: parse xml output
1214def "complete svn add paths" [] {
1315 ^svn status --depth files
1416 | lines
4951# usage: help [SUBCOMMAND...]
5052export extern "svn help" [
5153 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
55]
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.
65export 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
5586# FIXME: https://github.com/nushell/nushell/issues/5012
70101 --parents # add intermediate parents
104# Restore pristine working copy state (undo local changes).
73105export extern "svn revert" [
74106 paths: path@"complete svn revert paths"
75107 --targets: path # pass contents of file as additional args
79111 --changelist: string@"complete svn changelists" # operate only on members of changelist ARG
80112 --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.
120export 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
135]No final newline