This repository was archived by the owner on Mar 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { GraphQLClient } from "graphql-request";
4
4
import ora from "ora" ;
5
5
import os from "os" ;
6
6
import path from "path" ;
7
- import pkg from "../package.json" ;
8
7
import SettingsManager from "./SettingsManager" ;
9
8
10
9
export default abstract class CLI {
@@ -49,7 +48,7 @@ export default abstract class CLI {
49
48
this . OS_USERNAME = os . userInfo ( ) . username ;
50
49
this . NODE_VERSION = process . versions . node ;
51
50
this . NODE_PATH = process . env . NODE ;
52
- this . PKG_VERSION = pkg . version || "unknown" ;
51
+ this . PKG_VERSION = "unknown" ;
53
52
this . LANG = process . env . LANG ;
54
53
this . KMDR_PATH = path . join ( this . OS_HOME_PATH , ".kmdr" ) ;
55
54
this . KMDR_AUTH_FILE = path . join ( this . KMDR_PATH , "auth" ) ;
Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ class KMDR {
13
13
private welcomeMsg = `The CLI tool for learning commands from your terminal\n\nLearn more at https://kmdr.sh/` ;
14
14
15
15
public init ( ) {
16
- this . arg
17
- . description ( this . welcomeMsg )
18
- . version ( process . env . npm_package_version || "unknown" , "-v, --version" ) ;
16
+ this . arg . description ( this . welcomeMsg ) . version ( "unknown" , "-v, --version" ) ;
19
17
// this.cli.command("config").alias("c").description("Configure kmdr-cli").action(this.config);
20
18
this . arg
21
19
. command ( "explain" )
You can’t perform that action at this time.
0 commit comments