start new:
tmux
start new with session name:
tmux new -s myname
// Copyright 2018-2020 CERN | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/signal" | |
"strconv" |
package command | |
import ( | |
"context" | |
"os" | |
"os/signal" | |
"path" | |
"time" | |
"github.com/cs3org/reva/cmd/revad/runtime" |
diff --git a/go.mod b/go.mod | |
index c546224..e9188f6 100644 | |
--- a/go.mod | |
+++ b/go.mod | |
@@ -3,23 +3,14 @@ module github.com/owncloud/ocis-reva | |
go 1.13 | |
require ( | |
- github.com/cespare/xxhash/v2 v2.1.1 // indirect | |
- github.com/cs3org/reva v0.1.1-0.20200320145721-40c4334849c3 |
package main | |
import ( | |
"encoding/hex" | |
"log" | |
"net" | |
"time" | |
) | |
const ( |
#!/bin/sh | |
# ============================== | |
# usage: reva-panes path/to/toml | |
# - it starts the panes on detached mode, so | |
# - when attached to the session [C-c] will kill the daemon | |
# ============================== | |
# at least arg1 must exist | |
if [ $# -eq 0 ]; then | |
echo "wrong number of arguments" && exit 1 |
#!/bin/sh | |
# This hardcoded stuff is too volatile. | |
# - load all configs on a folder | |
# - read the folder *.toml files | |
# - launch revad with -c on the current toml | |
# - set -p (pid) to the name of the file (minus extension) with the .pid extension | |
# run storage-home by default within the main pane of the new session | |
tmux new-session -s "reva" -d -c /Users/aunger/code/reva revad -c ./examples/separate/storage-home.toml -p storage-home.pid |