You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
638 B
26 lines
638 B
#!/bin/bash
|
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
sledge=$PWD/cli/sledge_cli.exe
|
|
|
|
line=$(\
|
|
$sledge help -recursive -expand \
|
|
| grep -n "== subcommands ===" \
|
|
| cut -d : -f1,1)
|
|
|
|
line=$(($line+1))
|
|
|
|
$sledge help -recursive | sed -e "s/sledge_cli.exe/sledge/g"
|
|
|
|
$sledge h -r -e \
|
|
| tail -n +$line \
|
|
| sed -e "/^$/d;s/ \(.*\) .*/\1/g" \
|
|
| while read cmd; do \
|
|
printf "\n====== sledge $cmd ======\n\n"; \
|
|
$sledge $cmd -help | sed -e "s/sledge_cli.exe/sledge/g"; \
|
|
done
|