From b6e847a0a96f0dc9a37e351dcf88a2793d2c0b08 Mon Sep 17 00:00:00 2001 From: Daniils Petrovs Date: Wed, 28 Sep 2022 18:20:13 +0200 Subject: [PATCH] Add support for EDITOR usage for card body text Fixes #21 --- cmd/card_create.go | 2 +- cmd/root.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/card_create.go b/cmd/card_create.go index 629c7d7..d897e53 100644 --- a/cmd/card_create.go +++ b/cmd/card_create.go @@ -75,7 +75,7 @@ var cardCreateCmd = &cobra.Command{ }, { Name: "description", - Prompt: &survey.Multiline{Message: "Description?"}, + Prompt: &survey.Editor{Message: "Description?", FileName: "*.md"}, }, { Name: "labels", diff --git a/cmd/root.go b/cmd/root.go index 9c6b2db..3a5ed42 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,6 +1,5 @@ /* Copyright © 2022 Daniils Petrovs - */ package cmd @@ -14,7 +13,7 @@ import ( "github.com/spf13/viper" ) -const Version = "0.2.2" +const Version = "0.3.0" // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{