deploifai / deploifai/cli-go

core dataset features

Open
#24 0 comments 0 reactions 1 assignee Claimed by @98sean98 View on GitHub
enhancement
Dominant language
Go
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

A user should be able to interact with a dataset against a local directory.

## Initialise a local directory as a dataset

```shell
deploifai dataset init
```

The entire local directory is linked to the remote dataset. It becomes a mirror of the dataset.

Might need to write some kind of config into the global configuration file: save the absolute path of the local directory and the dataset together?

## Push data

Upload files to the linked dataset, given a path to a
- directory (can be the local directory `.`): upload entire directory
- a file: upload this file

```shell
deploifai dataset push [local-path]
```

The local directory hierarchy should be respected when uploaded data to the remote dataset, i.e. the mirror is upheld. That means careful path prepending is necessary.

This command should only work if the current directory is a directory linked to a dataset, or a subdirectory there of.

## Pull data

Downloads files from the linked dataset, given a remote path. A remote path can be
- a directory

```shell
deploifai dataset pull [remote-path]
```

The remote directory hierarchy should be respected when downloading data to the local directory, i.e. the mirror is upheld. That means careful path prepending is necessary.

This command should only work if the current directory is a directory linked to a dataset, or a subdirectory there of.

## Get info about the current directory

Checks if the current directory is linked to a dataset. This command should also work if it runs inside a subdirectory of the main directory linked to the dataset.

```shell
deploifai dataset info
```

Expected output:

#### In root of directory linked to dataset
```text
Linked to dataset-name
```

#### In subdirectory of directory linked to dataset
```text
Linked to dataset-name/subdirectory-1/subdirectory-2
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.