Skip to content

Releases: dabbu-knowledge-platform/cli

Dabbu CLI v3.3.0

26 May 16:49
3d0f1b4
Compare
Choose a tag to compare

Features added

  • Add default values feature [dcc7e10]
    • when creating a new drive, the values entered the first time are preserved
    • when you create a new drive with the same provider, the default values are used to fill in the fields (such as base path, client ID, client secret, etc)
  • Add the help command [ef9aad2]
  • Add a config command [4e2baff, c66d753]
    • alias: config, conf or cfg
    • usage: config <get | set | del> [value to set]
      • you can get any field, nested fields accessed using dots
      • you can set only current drive, server URL and default values for drive creation (see #65)
      • you can delete only history, a default value or a specific drive
    • added a del() method to utils/config.util.ts

Bug fixes

  • Close oauth callback server once response is received [c7c2f71]

Documentation

Builds/CI

  • Add colours and .sh extensions to scripts [37b28fd]

Dabbu CLI v3.2.0

23 May 15:25
Compare
Choose a tag to compare

Features added

  • Add the PRINT_ERRORS environment variable for printing errors to console [dc2b6b3]

Bug Fixes

  • Use the name returned by server for downloaded file [3b12a8d]
    • this is because some providers (like google drive/gmail) add an extension to the file name (e.g. docx or zip) so it can be opened on the user's computer through the file manager (most file managers associate apps with file extensions)
  • Fix crash on startup when checking creds and server url is null [efcd2bf]

Changes

  • Change logo (again! it will probably go through a few more iterations until we are happy with it, PRs welcome!) [f799b61]
  • Add instructions for creating oauth client for google drive, gmail and one drive to a single detailed gist and direct users to that [3e7dc67]

Builds/CI

  • Don't add version to artifact name [7de6fe8]
    • it confuses some linux distros while parsing the package name

Dabbu CLI v3.1.0

17 May 07:10
4b36d15
Compare
Choose a tag to compare

Features added

  • Add pwd command [3610074]
    • shows current drive name, provider and path
    • also displays list of drives

Fixes/changes

  • Check creds in the background on startup [d05ea92]
    • it used to block the shell for a few seconds on startup
  • Move instructions for creating oauth client to gist [b5bdf63]
    • direct users to follow the instructions in the gist, then copy-paste the client ID and secret into the CLI

Dabbu CLI v3.0.1

16 May 16:08
2b670ee
Compare
Choose a tag to compare

Fixes

  • Fixed issue with copy command - wrong file name displayed in loading indicator [5ad094b]
  • Fixed issue with copy command - when copying files on hard drive from disk to disk [918c853]
    • fixes itself when trying the same operation again once or twice
  • Fixed issue with copy command - encountered 404 when copying a file from the root of a drive [c6920ef]
  • Automatically register a new client if server does not recognise creds [0aeb411]

Builds/CI

  • Add fail fast flag to all bash scripts except the package script [b3c2557, 9a0a2f2]
  • Fix incorrect path to compiled js files [e598e43]
  • Fix copy-paste error in comments of package script [9696392]
  • Remove package-lock.json from git add command in bump-version script [3149ecb]

Docs

Dabbu CLI v3.0.0

16 May 05:50
95e612a
Compare
Choose a tag to compare

Changes

  • Typescript rewrite
  • Knowledge drive removed temporarily, it is being rewritten in Typescript
  • Use Files API Server v3 APIs
    • add support for client ID - API key authentication required by v3 server
  • Add logging
    • Logs are stored locally ONLY, in the config directory
      • Windows: %APPDATA%\Dabbu CLI\logs\dabbu-cli.log
      • MacOS: /Users/<username>/Library/Dabbu CLI/logs/dabbu-cli.log
      • Linux: ($HOME OR $XDG_CONFIG_HOME)/.config/Dabbu CLI/logs/dabbu-cli.log
    • These logs contain sensitive information, please be careful to remove sensitive information while posting them publicly. Work is underway to mask this sensitive information.

Fixes

  • Fix error 400 while attempting to create new drive

Documentation

  • Add logo, demo image to README.
  • Add install instructions for each OS to README.

Builds/CI

  • Build packages for different operating systems for direct download
    • Windows: Generic ZIP
      • The generic zip (for win, macos, linux) contains:
        • Manual page (or manpage)
        • Logo
        • Desktop entry (.desktop file)
        • License file
        • Readme file
        • Version file
        • Binary file (named dabbu-cli or dabbu-cli.exe)
      • The .exe needs to be run every time you want to start the CLI in Windows
    • MacOS: PKG file, Generic ZIP
      • The MacOS package contains the man page, but no desktop entry (need to start it from terminal by typing dabbu-cli)
      • TODO: Find out how to create a desktop entry
    • Linux: DEB file, RPM file, PACMAN package, APK file, Generic ZIP
      • The Linux packages contain man pages and desktop entries for the CLI
  • Automatic releases only from the develop branch
  • Add bash scripts for all jobs

Tests

  • Use Jest to test
    • Added dummy test
    • TODO: Add actual unit tests

Style/Format

  • Add ts files to .editorconfig
  • Use ESLint to lint typescript files

Dabbu CLI v2.7.2-alpha.1

29 Apr 09:03
Compare
Choose a tag to compare
Pre-release

Fixes

  • fix(create): overwrite file when it already exists [c545421]
    • also update access token even if it is still valid for the next 60 seconds

Builds/CI

  • fix(ci): allow prereleases from non main branches [5c6d66d]

Dabbu CLI v2.7.2-alpha.0

29 Apr 04:22
Compare
Choose a tag to compare
Pre-release

Changes

  • feat(list): add callback to list function [6aa04d6]
    • call the callback for every fifty files instead of waiting for all files to be returned
    • this applies to copy and move operations as well - they will be performed in batches of 50

Maintenance

  • chore(deps): update pkg and xo [c809e64]

Dabbu CLI v2.7.1

18 Apr 12:38
Compare
Choose a tag to compare

Bug fixes

  • fix(read): folder path is always null [fbbd944]

    • typo in code, did not specify .length in slice() function call
  • fix(utils): remove unnecessary \n while printing token expiry [99ec1bf]

  • fix(list): don't print no of files/folders in dir twice [9997c23]

  • fix(list): show number of files listed at the end if no of files > 50 [6eb8290]

    • also show headers when listing files, they were not shown since last release due to a bug
  • fix(spinner): hide spinner while printing access token expiry time [973cd34]

  • fix(prompt): show / in prompt if in root dir [59edb12]

Documentation

  • docs: add code of conduct [9bf14ba]
  • fix(contributing): update instructions regarding linter [035d18e]
  • docs(readme): copy website intro, install and getting started parts to readme [8fc2929]

Legal stuff

  • docs: change copyright headers to Dabbu Knowledge Platform [6467227]

Build/CI

  • fix(version script): fetch tags before generating release notes [87ab616]

Dabbu CLI v2.7.0

06 Apr 10:48
Compare
Choose a tag to compare

Features added

  • feat(logging): log errors only if env var PRINT_ERRORS is set [544f51a]
    • run PRINT_ERRORS=true dabbu-cli to enable verbose error logging
  • feat(list method/ls): folders are returned first (though this might not be seen when the result is more than 50 items long)
  • feat(list api): implement pagination [d641cfc]
    • results are requested in batches of 50
    • as the results come in, they are printed
    • only exception is the hard drive provider, as it does not support pagination

Bug fixes

  • fix(spinner): use only one spinner throughout the CLI [4615dcc, 59daa55]
  • fix(oauth): 400 error while refreshing access token [cca941e]
    • send auth metadata in query param or request body based on send-auth-metadata-in variable in provider-fields.json
  • fix(setup): init method had names with _ [9e90719]
    • changed them to -

Changes to install script

  • feat(install scipt): add comments, rename -f to -d (for dry run) and remove -o in install script [3054fed]
  • fix(bump version script): don't push tags, else ci doesn't release assets [15257a9]

Builds/CI

  • ci: test and build for all branches, release only for main [aa02a8f]
  • ci: release builds only from main branch [2a273f9]

Dabbu CLI v2.6.2

05 Apr 13:21
Compare
Choose a tag to compare

Bug fixes

  • Setup for many providers not working [9e90719]

Builds/CI

  • ci: release builds only from main branch [2a273f9]