ci: add site unpacking / packing to makefile, ignore assets directory
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
abs3nt 2023-03-06 10:39:51 -08:00
parent 764265ba04
commit 0e454d971d
16 changed files with 31 additions and 211579 deletions

1
.gitignore vendored
View File

@ -25,6 +25,7 @@ _testmain.go
*.exe *.exe
*.test *.test
*.prof *.prof
/assets/
.glide .glide
.idea .idea

View File

@ -5,6 +5,12 @@ ${pkgname}: $(shell find . -name '*.go')
mkdir -p bin mkdir -p bin
go build -o bin/${pkgname} . go build -o bin/${pkgname} .
decode:
go run hack/unpack/main.go
pack-site:
go-bindata -pkg haunt -o src/haunt/bindata.go -fs assets/...
completions: completions:
mkdir -p completions mkdir -p completions
./bin/${pkgname} completion zsh > completions/_${pkgname} ./bin/${pkgname} completion zsh > completions/_${pkgname}
@ -18,8 +24,9 @@ tidy:
go mod tidy go mod tidy
clean: clean:
rm -f bin rm -rf bin
rm -rf completions rm -rf completions
rm -rf assets
uninstall: uninstall:
rm -f /usr/bin/${pkgname} rm -f /usr/bin/${pkgname}

View File

@ -1,7 +0,0 @@
<div ui-view="content" style="width:100%;" ng-if="!socket.err"></div>
<div ui-view="content" style="width:100%;" ng-if="socket.err" layout="row" layout-align="center stretch">
<div flex="100" layout="row" layout-align="center center" id="err" layout-wrap="layout-wrap">
<div flex="100"><img src="/assets/img/logo.png" /></div>
<div flex="100" layout-padding="layout-padding">websocket not found</div>
</div>
</div>

View File

@ -1,102 +0,0 @@
<md-content layout="row" layout-wrap="layout-wrap" flex="100" layout-align="start start"><md-toolbar flex="100"
id="header" layout="row" layout-wrap="layout-wrap">
<div class="menu" layout="row" layout-align="center center" ng-click="rotate()"><md-icon class="transition"
md-svg-src="{{icon}}" ng-class="{ 'rotate': open}"></md-icon></div>
<div class="navbar" layout="row" layout-align="space-between center" flex="flex">
<div flex="50" layout="row" layout-align="start center"><img class="logo" src="/assets/img/logo.png" />
<div>
<div class="title">{{current.name}}</div>
<div class="circle" ng-if="socket.status"></div>
<div class="circle-red" ng-if="!socket.status"></div>
<div class="status">Active</div>
</div>
</div>
<div flex="50" layout="row" layout-align="end center"><md-button class="md-icon-button md-primary"
aria-label="settings"><md-tooltip md-direction="left">Coming soon</md-tooltip><img class="settings"
src="/assets/img/svg/ic_settings_black_48px.svg" /></md-button></div>
</div>
</md-toolbar><md-content flex="100" id="content" layout="start stretch"><md-sidenav class="md-sidenav-left transition"
layout="row" layout-wrap="layout-wrap" layout-align="start stretch" md-component-id="left"
md-disable-backdrop="md-disable-backdrop" md-is-locked-open="open">
<div class="fade-out" flex="100" layout="column" layout-wrap="layout-wrap" layou-align="center space-between"
ng-hide="!open">
<div flex="85" layout="row" layout-wrap="layout-wrap" layout-align="start start">
<!--div(flex=100 layout="row" layout-wrap class="menu")--><!-- div(flex=100 class="title back")--><!-- md-button(class="md-icon-button md-primary" aria-label="settings")--><!-- img(src="/assets/img/svg/ic_arrow_back_black_48px.svg" class="back-ico")--><!-- span Projects-->
<div class="side"><md-button class="md-icon-button md-primary fade-out" aria-label="settings"
ng-click="back()" ng-hide="list"><md-icon
md-svg-src="/assets/img/svg/ic_arrow_back_black_48px.svg"></md-icon></md-button></div>
<div class="menu" flex="flex" layout="row" layout-wrap="layout-wrap" ng-hide="list"
ng-class="{'fade-out':!list}">
<div class="title" flex="100">Projects</div>
<div class="project" flex="100" ng-click="change(1)" ng-class="{'active': select == 1}">All</div>
<div class="project" flex="100" ng-click="change(2)" ng-class="{'active': select == 2}">Logs</div>
<div class="project" flex="100" ng-click="change(3)" ng-class="{'active': select == 3}">Errors</div>
<div class="project" flex="100" ng-click="change(4)" ng-class="{'active': select == 4}">Outputs</div>
</div>
<div class="menu" flex="flex" layout="row" layout-wrap="layout-wrap" ng-hide="!list">
<div class="title" flex="100">Projects</div>
<div class="project" flex="100" ng-repeat="item in socket.data.schema"
ng-class="{'active':item.name == current.name}" ng-click="collapse(item.name)">{{item.name}}</div>
</div>
</div>
<div class="version" flex="15" layout="row" layout-wrap="layout-wrap" layout-align="start center">
<div flex="100"><a href="https://github.com/abs3ntdev/haunt">Help & Documentation</a></div>
<div flex="100" layout-padding="layout-padding"><a
href="https://github.com/abs3ntdev/haunt/blob/master/README.md">Haunt</a></div>
<div flex="100"><a href="https://github.com/abs3ntdev/haunt" target="_blank"><md-button
class="md-icon-button md-primary" aria-label="settings"><md-icon
md-svg-src="/assets/img/svg/github-logo.svg"></md-icon></md-button></a></div>
</div>
</div>
</md-sidenav>
<div class="tabs" flex="100" layout="row" layout-wrap="layout-wrap" layout-align="space-around stretch"
layout-padding="layout-padding">
<div class="tab" flex="flex" layout="row" layout-wrap="layout-wrap" layout-align="start start"
ng-hide="select != 1 &amp;&amp; select != 2">
<div class="name" flex="100" layout="row" layout-wrap="layout-wrap">
<div flex="100" layout="row">
<div>Logs</div>
</div>
<div class="streams" flex="100" layout="row" layout-wrap="layout-wrap">
<div class="item" flex="100" layout="row" ng-repeat="out in current.buffer.stdLog | orderBy:'-time'">
<div class="cap" flex="80">{{out.text}}</div>
<div flex="20" layout="row" layout-align="end start">{{out.time | date: 'shortTime'}}</div>
</div>
</div>
</div>
</div>
<div class="tab" flex="flex" layout="row" layout-wrap="layout-wrap" layout-align="start start"
ng-hide="select != 1 &amp;&amp; select != 3">
<div class="name" flex="100" layout="row" layout-wrap="layout-wrap">
<div flex="100" layout="row">
<div>Errors</div>
<div class="err" ng-if="current.buffer.stdErr.length &gt; 0">{{current.buffer.stdErr.length}}</div>
</div>
<div class="streams" flex="100" layout="row" layout-wrap="layout-wrap">
<div class="item" flex="100" layout-wrap="layout-wrap" layout="row"
ng-repeat="out in current.buffer.stdErr | orderBy:'-time'">
<div class="cap" flex="80"><span>{{out.type}}</span><br /><span>{{out.text}}</span></div>
<div flex="20" layout="row" layout-align="end start">{{out.time | date: 'shortTime'}}</div>
<div flex="100" ng-if="out.stream">
<div>{{out.stream}}</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab" flex="flex" layout="row" layout-wrap="layout-wrap" layout-align="start start"
ng-hide="select != 1 &amp;&amp; select != 4">
<div class="name" flex="100" layout="row" layout-wrap="layout-wrap">
<div flex="100" layout="row">
<div>Outputs</div>
</div>
<div class="streams" flex="100" layout="row" layout-wrap="layout-wrap">
<div class="item" flex="100" layout="row" ng-repeat="out in current.buffer.stdOut | orderBy:'-time'">
<div class="cap" flex="80">{{out.text}}</div>
<div flex="20" layout="row" layout-align="end start">{{out.time | date: 'shortTime'}}</div>
</div>
</div>
</div>
</div>
</div>
</md-content></md-content>

View File

@ -1,141 +0,0 @@
<div layout="row" flex="100" layout-wrap="layout-wrap" id="projects"><md-whiteframe class="md-whiteframe-2dp box scroll"
flex="100" layout="row" layout-align="start start" layout-wrap="layout-wrap"><md-toolbar class="bar bgg" flex="100"
layout="row" layout-align="space-between center">
<div class="left" flex="flex"><md-button class="md-icon-button hov no-margin"
ui-sref="app.project({name: current.name})"><md-icon
md-svg-src="/assets/img/svg/backspace.svg"></md-icon></md-button></div>
<div class="right" flex="flex" layout-padding="layout-padding">{{current.name || '-'}}</div>
</md-toolbar><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding" layout-align="center center">
<div class="field" flex="50">working path</div>
<div class="value text" flex="50">{{current.path || '-'}}</div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding" layout-align="center center">
<div class="field" flex="50">params</div>
<div class="value text" flex="50"><span ng-if="!current.args">-</span><span
ng-repeat="param in current.args">{{param}}{{$last ? '' : ', '}}</span></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding" layout-align="center center">
<div class="field" flex="50">Environment</div>
<div class="value text" flex="50"><span ng-if="!current.environment">-</span><span
ng-repeat="env in current.environment">{{env}}{{$last ? '' : ', '}}</span></div>
</div>
</md-list-item><!--section--><md-list-item class="paragraph" layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field title" flex="100" layout-padding="layout-padding">Settings</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go run</div>
<div class="value" flex="50" ng-class="{ 'enabled': current.commands.run, 'disabled': !current.commands.run }"
layout="row" layout-align="space-between center">
<div>{{current.commands.run ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.run"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go build</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.build.status, 'disabled': !current.commands.build.status }" layout="row"
layout-align="space-between center">
<div>{{current.commands.build.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.build.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go install</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.install.status, 'disabled': !current.commands.install.status }"
layout="row" layout-align="space-between center">
<div>{{current.commands.install.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.install.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go fmt</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.fmt.status, 'disabled': !current.commands.fmt.status }" layout="row"
layout-align="space-between center">
<div>{{current.commands.fmt.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.fmt.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go vet</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.vet.status, 'disabled': !current.commands.vet.status }" layout="row"
layout-align="space-between center">
<div>{{current.commands.vet.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.vet.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go test</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.test.status, 'disabled': !current.commands.test.status }" layout="row"
layout-align="space-between center">
<div>{{current.commands.test.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.test.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go generate</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.generate.status, 'disabled': !current.commands.generate.status }"
layout="row" layout-align="space-between center">
<div>{{current.commands.generate.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.generate.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go fix</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.fix.status, 'disabled': !current.commands.fix.status }" layout="row"
layout-align="space-between center">
<div>{{current.commands.fix.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.fix.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">go clean</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.commands.clean.status, 'disabled': !current.commands.clean.status }" layout="row"
layout-align="space-between center">
<div>{{current.commands.clean.status ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.commands.clean.status"
aria-label="switch"></md-switch></div>
</div>
</md-list-item><!--section--><md-list-item class="paragraph" layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field title" flex="100" layout-padding="layout-padding">watcher</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding">
<div class="field" flex="50">Folders to watch</div>
<div class="value text" flex="50"><span ng-repeat="path in current.watcher.paths">{{path}}{{$last ? '' : ',
'}}</span></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding">
<div class="field" flex="50">file extensions to watch</div>
<div class="value text" flex="50"><span ng-repeat="ext in current.watcher.extensions">{{ext}}{{$last ? '' : ',
'}}</span></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding">
<div class="field" flex="50">ignored folders</div>
<div class="value text" flex="50"><span ng-repeat="dir in current.watcher.ignored_paths">{{dir}}{{$last ? '' :
', '}}</span></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div flex="100" layout="row" layout-padding="layout-padding">
<div class="field" flex="50">After/Before commands</div>
<div class="value text" flex="50"><span>{{current.watcher.scripts.length || '-'}}</span></div>
</div>
</md-list-item><md-list-item layout="row" flex="100" layout-wrap="layout-wrap">
<div class="field" flex="50">file preview</div>
<div class="value" flex="50"
ng-class="{ 'enabled': current.watcher.preview, 'disabled': !current.watcher.preview }" layout="row"
layout-align="space-between center">
<div>{{current.watcher.preview ? 'Enabled' : 'Disabled' }}</div>
<div><md-switch class="md-warn md-hue-2" ng-change="sync()" ng-model="current.watcher.preview"
aria-label="switch"></md-switch></div>
</div>
</md-list-item></md-whiteframe></div>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="438.549" height="438.549" viewBox="0 0 438.549 438.549"><path d="M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 0 1-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"/></svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1 +0,0 @@
<svg height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path fill="#fff" d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>

Before

Width:  |  Height:  |  Size: 210 B

View File

@ -1 +0,0 @@
<svg fill="#FFF" height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/><path d="M0 0h24v24H0z" fill="none"/></svg>

Before

Width:  |  Height:  |  Size: 251 B

View File

@ -1 +0,0 @@
<svg fill="#FFF" height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>

Before

Width:  |  Height:  |  Size: 195 B

View File

@ -1 +0,0 @@
<svg height="48" viewBox="0 0 24 24" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path fill="#8ca0b3" d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></svg>

Before

Width:  |  Height:  |  Size: 821 B

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,24 +0,0 @@
<!DOCTYPE html>
<html ng-app="haunt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
<link rel="icon" href="/assets/img/logo.png"><!-- bower:css -->
<!-- endinject -->
<!-- inject:css -->
<link rel="stylesheet" href="/assets/css/app.css">
<!-- endinject -->
<title>Haunt</title>
</head>
<body ui-view layout="row" layout-align="start stretch"><!-- bower:js -->
<!-- endinject -->
<!-- inject:js -->
<script src="/assets/js/all.min.js"></script>
<!-- endinject -->
</body>
</html>

22
hack/unpack/main.go Normal file
View File

@ -0,0 +1,22 @@
package main
import (
"fmt"
"github.com/abs3ntdev/haunt/src/haunt"
)
func main() {
names := haunt.AssetNames()
fmt.Println("Assets in bindata:")
fmt.Println(names)
wd := "assets"
for i, v := range names {
fmt.Printf("Restoring asset [%v] [%s]\n", i, v)
err := haunt.RestoreAsset(wd, v)
if err != nil {
fmt.Println("Failed to restore", v)
}
}
}