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
592 B
26 lines
592 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=$(dirname $PWD)/install/$(basename $PWD)/bin/sledge
|
|
|
|
line=$(\
|
|
$sledge help -recursive -expand \
|
|
| grep -n "== subcommands ===" \
|
|
| cut -d : -f1,1)
|
|
|
|
line=$(($line+1))
|
|
|
|
$sledge help -recursive
|
|
|
|
$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; \
|
|
done
|