deckctl

command module
v0.0.0-...-8f98708 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Deckctl

Deckctl is a CLI application to manage the NextCloud Deck app (https://github.com/nextcloud/deck).

How to install

$ go get github.com/tcassaert/deckctl

Usage

List

List your boards

$ deckctl list boards

List the stacks on given board

$ deckctl list stacks --board foo

List the cards on given stack and board

$ deckctl list cards --board foo --stack bar
New

Create new board

$ deckctl new board --title foo --color '#000000'

Create new stack on given board

$ deckctl new stack --title foo --board bar

Create new card on given board and stack

$ deckctl new card --title foo --board bar --stack bar
Delete

Delete a board

$ deckctl delete board --title foo

Delete a stack on a board

$ deckctl delete stack --title foo --board bar

Delete a card on given board and stack

$ deckctl delete card --title foo --board bar --stack bar
Init

Initialize a new board, with stacks configured in the configuration file

$ deckctl init --color '#000000' --title foo

The configuration for this board could look like this:

init:
  stacks:
    - 'To do'
    - 'In progress'
    - 'Done'

Configuration

You can create a config file ~/.deckctl.yaml (or another path with --config).

---
endpoint: https://nextcloud.local
username: your_username
password: your_password

Test with a Nextcloud container

podman run -d -p 8080:80 -v nextcloud:/var/www/html -v  apps:/var/www/html/custom_apps -v config:/var/www/html/config -v data:/var/www/html/data --name nextcloud nextcloud:stable-apache

Install the NextCloud Deck app and point the endpoint in your config file to localhost:8080.

Inspiration

Got a lot of inspiration from the inuits/12to8 CLI application on how to build a Golang CLI app.

Documentation

Overview

Copyright © 2020 Thomas Cassaert <tcassaert@inuits.eu>

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, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL