Skip to content

Commit

Permalink
legalhold import feature ready
Browse files Browse the repository at this point in the history
  • Loading branch information
rebely3ll committed May 13, 2024
1 parent b000885 commit 9f5f8b4
Show file tree
Hide file tree
Showing 24 changed files with 2,845 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test
# Folder view configuration files
.DS_Store
Desktop.ini

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Thumbnail cache files
._*
Thumbs.db

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
bin/
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# otlh: OpenText LegalHold

`otlh` is a command-line interface (CLI) tool for managing legal holds service. It allows users to perform various operations related to legal holds, such as creating, updating, and listing legal holds , as well as managing custodians.

## Installation

To install `otlh`, you can download the latest release from the [GitHub releases page](https://gitlab.otxlab.net/rec-ps-dev/legalhold/otlh/-/releases) or build it from source using Go.

### Building from Source

1. Make sure you have Go installed on your system. You can download it from the official [Go website](https://golang.org/dl/).
2. Clone the repository:
```
git clone https://gitlab.otxlab.net/rec-ps-dev/legalhold/otlh
```
3. Navigate to the project directory:
```
cd otlh/cmd/cli
```
4. Build the binary:
```
./build.sh (macos or linux) or ./build.bat (windows)
```
5. The `otlh` binary will be created in the bin/ directory.

## Usage
```
bin/otlh.exe
NAME:
otlh - Command Line Interface to access Opentext LegalHold service
USAGE:
otlh [global options] command [command options]
VERSION:
0.1-alpha
COMMANDS:
create
get
import
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--domain value, -x value domain name for Opentext legahold service (default: "api.otlegalhold.com") [$LHN_DOMAIN]
--port value, -p value port (default: 443)
--tenant value, -c value tenant name [$LHN_TENANT]
--authToken value, -t value token to access legalhold web service (default: "") [$LHN_AUTHTOKEN]
--debug, -d Debug Mode: Log to stderr (default: false)
--help, -h show help
--version, -v print the version
```
1 change: 1 addition & 0 deletions cmd/cli/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go build -ldflags="-s -w" -o bin/otlh.exe .
1 change: 1 addition & 0 deletions cmd/cli/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go build -o bin/otlh .
Loading

0 comments on commit 9f5f8b4

Please sign in to comment.